Expand description
Vanilla menu kind implementations.
Modulesยง
- anvil_
menu ๐ - Anvil menu.
- basic_
menu ๐ - chest_
menu ๐ - Chest menu for chest-like containers (chests, barrels, ender chests, shulker boxes).
- crafting_
menu ๐ - Crafting table menu (3x3 grid).
- inventory_
menu ๐ - Player inventory menu.
Structsยง
- Anvil
Kind - Per-menu anvil state: inputs, result, level cost, and rename text.
- Basic
Kind - A menu kind with all-default handling and no special behavior.
- Chest
Kind - Per-menu chest state: just the backing container for the validity check.
- Crafting
Kind - Per-menu crafting state: result container, table position, and recipe handler.
- Inventory
Kind - Per-menu player-inventory state: recipe handler, result container, and the section handles for its custom shift-click.
Constantsยง
- INVENTORY_
MENU_ CONTAINER_ ID - Container ID for the player inventory (always 0).
Functionsยง
- anvil
- Builds the anvil menu.
- chest
- Builds a chest-like menu with
rowsrows of 9 slots plus the player inventory. - crafting
- Builds the crafting table menu with a 3x3 grid.
- inventory_
menu - Builds the player inventory menu, always open when no other menu is.