Defines this entity's inventory properties.
Readonly
Number of slots that this entity can gain per extra strength.
This property can throw when used.
If true, the contents of this inventory can be removed by a hopper.
Optional
Defines the container for this entity. The container will be undefined if the entity has been removed.
Type of container this entity has.
The entity that owns this component. The entity will be undefined if it has been removed.
Number of slots the container has.
If true, the entity will not drop it's inventory on death.
If true, the entity's inventory can only be accessed by its owner or itself.
Identifier of the component.
Static
Whether the component is valid.
This function is deprecated and will be removed in 2.0.0.
Returns whether the component is valid. A component is considered valid if its owner is valid, in addition to any addition to any additional validation required by the component.
Defines this entity's inventory properties.