Class BlockInventoryComponent

Represents the inventory of a block in the world. Used with blocks like chests.

Hierarchy

  • BlockInventoryComponent

Constructors

Properties

Constructors

Properties

container: Container

Remarks

The container which holds an ItemStack.

Throws

This property can throw when used.

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

Remarks

Identifier of this component. Should always be minecraft:inventory.