Skip to main content

Module kinds

Module kinds 

Source
Expand description

Vanilla menu kind implementations.

ModulesΒ§

anvil_menu πŸ”’
Anvil menu.
basic_menu πŸ”’
beacon_menu πŸ”’
Beacon menu.
chest_menu πŸ”’
Chest menu for chest-like containers (chests, barrels, ender chests, shulker boxes).
crafting_menu πŸ”’
Crafting table menu (3x3 grid).
ender_chest_menu πŸ”’
Ender chest menu.
furnace_menu πŸ”’
Furnace, blast-furnace, and smoker menus.
grindstone_menu πŸ”’
Grindstone menu.
inventory_menu πŸ”’
Player inventory menu.
shulker_box_menu πŸ”’
Shulker box 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.
BeaconKind
Per-menu beacon state.
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.
EnderChestKind
Per-menu ender chest state: the player’s container, which knows which block entity the menu was opened from.
FurnaceMenuKind
State and shift-click behavior shared by all furnace-family menus.
GrindstoneKind
Per-menu grindstone state: the two inputs and the virtual result.
InventoryKind
Per-menu player-inventory state: recipe handler, result container, and the section handles for its custom shift-click.
ShulkerBoxKind
Per-menu shulker box state: just the backing container for the validity check.

ConstantsΒ§

INVENTORY_MENU_CONTAINER_ID
Container ID for the player inventory (always 0).

FunctionsΒ§

anvil
Builds the anvil menu.
beacon
Builds the beacon 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.
ender_chest
Builds the menu over a player’s ender chest container.
furnace_menu
Builds the three-slot Vanilla menu for one furnace-family block entity.
grindstone
Builds the grindstone menu.
inventory_menu
Builds the player inventory menu, always open when no other menu is.
shulker_box
Builds a shulker box menu with 3 rows of 9 slots plus the player inventory.