This component is added to items with the Storage Item component. Can access and modify this items inventory container.

Hierarchy (View Summary)

Constructors

Properties

container: Container

This property can throw when used.

InvalidContainerError

isValid: boolean

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.

typeId: string

Identifier of the component.

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