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

    接口 IMenuCreationParams

    Properties required to create a Menu

    interface IMenuCreationParams {
        checked?: boolean;
        enabled?: boolean;
        icon?: string;
        label: string;
        tooltip?: string;
        uniqueId?: string;
    }
    索引

    属性

    checked?: boolean

    Whether the menu should show a checkmark

    enabled?: boolean

    Whether the menu should be enabled or disabled

    icon?: string

    Whether the menu should have an icon.

    label: string

    Localized display text of the menu

    tooltip?: string

    Whether the menu should have a tooltip.

    uniqueId?: string

    Custom unique identifier that will replace random id