Skip to content
BasaltSoftware
Bedrock 1.26.60

Site colour

Discord
Esc

    ↑↓ moveEnter openEsc close

    Keyboard shortcuts
    Ctrl K
    Search the whole site, from any page
    /
    Jump to the sidebar search, or search the whole site where there isn't one
    Enter
    Open the top search result
    Esc
    Clear the search, or close this panel
    ?
    Show these shortcuts
    Plugin API

    @basalt/menus

    @basalt/menus, Basalt's own module (Mojang has none): container windows with no block behind them, as PowerNukkitX's FakeInventory opens them.

    2 classes · 2 interfaces · 2 enums
    On this page

    @basalt/menus, Basalt’s own module (Mojang has none): container windows with no block behind them, as PowerNukkitX’s FakeInventory opens them. The player is sent a block only they see, just above their head, and the window opens on it; when it closes, however it closes, they’re sent the real block back.

    A menu’s slots are the plugin’s. They change when the plugin sets them or when a click its handlers allow moves items, and nothing in them falls into the world when the window closes or the player dies or leaves.

    import { ChestMenu } from '@basalt/menus';