class

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)
Source

Instance methods

[](index : Int32) : Rosegold::Slot

Slot access

Source
[]=(index : Int32, slot : Rosegold::Slot)
Source
allow_modification?(slot_index : Int32) : Bool
Source
armor_slots
Source
boots
Source
chestplate
Source
close
Source
container_slots
Source
crafting_grid
Source
crafting_grid_range

Slot indices for the crafting grid (1..9 for crafting table, 1..4 for player inventory).

Source
crafting_result
Source
crafting_result_move_end

Exclude offhand slot (45) from crafting result targets.

Source
crafting_slots
Source
get_slot_max_stack_size(slot_index : Int32, item_slot : Rosegold::Slot) : Int32
Source
handle_close
Source
helmet
Source
hotbar_slot_index(hotbar_nr : Int32) : Int32
Source
hotbar_window_slots
Source
inventory_slots
Source
leggings
Source
may_pickup?(slot_index : Int32) : Bool
Source
may_place?(slot_index : Int32, item_slot : Rosegold::Slot) : Bool

Slot validation

Source
off_hand
Source
offhand
Source
offhand_slot_index

Slot group accessors

Source
player_inventory
Source
player_inventory_start

Player inventory start offset within this menu

Source
quick_move_stack(slot_index : Int32) : Rosegold::Slot

Shift-click routing (each menu subclass defines where items move)

Source
total_slots
Source