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

    类 BlockItemFrameComponent实验性

    Represents the frame holding an item of a block in the world. You can replace the item, remove it, drop it into the world, or get and set its rotation.

    层级 (查看层级一览)

    索引
    block: Block

    Block instance that this component pertains to.

    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:item_frame" = 'minecraft:item_frame'
    • 世界修改

      参数

      • 可选itemStack: ItemStack

        The item stack to display in the frame, or undefined to clear it without dropping it.

      返回 void

      Sets or replaces the item displayed in the frame. Pass undefined to remove the item without dropping it.