Class BlockInventoryComponentBeta

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

Hierarchy

Constructors

Properties

Constructors

Properties

block: Block
container: Container

The container which holds an ItemStack.

Throws

This property can throw when used.

typeId: string
componentId: "minecraft:inventory" = 'minecraft:inventory'

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