Rosegold::PlayerMenu
Inherits Rosegold::Menu / Reference / Object
Player inventory menu — the view when no container is open. Replaces the previous InventoryMenu class. Layout: crafting_result(0), crafting(1-4), armor(5-8), main(9-35), hotbar(36-44), offhand(45)
Constants
ARMOR_END = 8
ARMOR_START = 5
BOOTS_SLOT = 8
CHESTPLATE_SLOT = 6
CRAFTING_END = 4
CRAFTING_RESULT = 0
CRAFTING_START = 1
HELMET_SLOT = 5
HOTBAR_END = 44
HOTBAR_START = 36
LEGGINGS_SLOT = 7
MAIN_END = 35
MAIN_START = 9
OFF_HAND = 45
TOTAL_SLOTS = 46
Constructors
new(client)
SourceInstance methods
armor_slots
Sourceboots
Sourcechestplate
Sourceclose
Sourcecontainer_slots
Sourcecrafting_grid
Sourcecrafting_grid_range
Slot indices for the crafting grid (1..9 for crafting table, 1..4 for player inventory).
crafting_result
Sourcecrafting_slots
Sourcehandle_close
Sourcehelmet
Sourcehotbar_window_slots
Sourceinventory_slots
Sourceleggings
Sourceoff_hand
Sourceoffhand
Sourceplayer_inventory
SourceShift-click routing (each menu subclass defines where items move)
total_slots
Source