@minecraft
    正在准备搜索索引...

    类 ItemInventoryComponent实验性

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

    层级 (查看层级一览)

    索引

    属性

    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'