Skip to main content

Module inventory_menu

Module inventory_menu 

Source
Expand description

Player inventory menu.

Slot layout (46 total):

  • Slot 0: Crafting result
  • Slots 1-4: 2x2 grid
  • Slots 5-8: Armor (head, chest, legs, feet)
  • Slots 9-35: Main inventory (27)
  • Slots 36-44: Hotbar (9)
  • Slot 45: Offhand

Structs§

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§

inventory_menu
Builds the player inventory menu, always open when no other menu is.