@minecraft/server-editor
    Preparing search index...

    Interface IMenuBeta

    interface IMenu {
        checked?: boolean;
        enabled: boolean;
        id: string;
        submenu: IMenu[];
        addItem(
            params: IMenuCreationParams,
            action?: RegisteredAction<NoArgsAction>,
        ): IMenu;
        dispose(): void;
        hide(): void;
        replaceAction(action: RegisteredAction<NoArgsAction>): void;
        show(): void;
    }
    Index

    Properties

    checked?: boolean

    If defined, the menu will show a checked or unchecked checkbox.

    enabled: boolean

    The menu will be in either an enabled or disabled state

    id: string

    Unique ID for the menu

    submenu: IMenu[]

    Sub menus of this menu

    Methods

    • Beta

      Returns void

    • Beta

      Returns void

    • Beta

      Returns void