Class EntityInventoryComponent

Defines this entity's inventory properties.

Hierarchy

Constructors

Properties

additionalSlotsPerStrength: number

Remarks

Number of slots that this entity can gain per extra strength.

Throws

This property can throw when used.

canBeSiphonedFrom: boolean

Remarks

If true, the contents of this inventory can be removed by a hopper.

Throws

This property can throw when used.

container: Container

Remarks

Defines the container for this entity.

Throws

This property can throw when used.

containerType: string

Remarks

Type of container this entity has.

Throws

This property can throw when used.

inventorySize: number

Remarks

Number of slots the container has.

Throws

This property can throw when used.

private: boolean

Remarks

If true, the entity will not drop it's inventory on death.

Throws

This property can throw when used.

restrictToOwner: boolean

Remarks

If true, the entity's inventory can only be accessed by its owner or itself.

Throws

This property can throw when used.

typeId: string

Remarks

Identifier of the component.

componentId: "minecraft:inventory" = 'minecraft:inventory'