@minecraft/server-editor

    Interface IBlockTablePropertyItemBeta

    A property item which supports Block Table properties

    interface IBlockTablePropertyItem {
        enable: boolean;
        id: string;
        paneId: string;
        typeName: PropertyItemType;
        visible: boolean;
        addOrUpdateEntry(
            block: string | BlockType,
            blockInfo: IBlockTableEntryInfo,
        ): void;
        deleteEntry(block: string): void;
        getEntry(block: string | BlockType): undefined | IBlockTableEntryInfo;
        setTitle(title: LocalizedString): void;
        updateEntries(entries: Map<string, IBlockTableEntryInfo>): void;
    }

    Hierarchy (View Summary, Expand)

    Index

    Properties

    enable: boolean

    If the item is enabled in the UI.

    id: string

    Unique ID for the property item.

    paneId: string

    The parent pane id.

    The type name of the target property.

    visible: boolean

    If the item should be visible in the UI.

    Methods

    • Beta

      Parameters

      • block: string | BlockType

        a new entry in the block table.

      • blockInfo: IBlockTableEntryInfo

        block info for the entry in the block table.

      Returns void

      Create new or update an existing entry in the block table

    • Beta

      Parameters

      • block: string

        an entry in the block table.

      Returns void

      Delete entry in the block table, by block name

    • Beta

      Parameters

      • block: string | BlockType

        an entry in the block table.

      Returns undefined | IBlockTableEntryInfo

      Read entry from the block table, by block name

    • Beta

      Parameters

      Returns void

      Updates title of the property item.

    • Beta

      Parameters

      Returns void

      Update the block table entries

    MMNEPVFCICPMFPCPTTAAATR