Skip to main content

Module kinds

Module kinds 

Source
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ยง

AnvilKind
Per-menu anvil state: inputs, result, level cost, and rename text.
BasicKind
A menu kind with all-default handling and no special behavior.
ChestKind
Per-menu chest state: just the backing container for the validity check.
CraftingKind
Per-menu crafting state: result container, table position, and recipe handler.
InventoryKind
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 rows rows 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.