class Rosegold::Window
- Rosegold::Window
- Reference
- Object
Overview
Slot accessor methods raise an error if the window is not ready. Note that slots are still available even after the window has been closed.
Direct Known Subclasses
Defined in:
rosegold/world/window.crConstructors
Instance Method Summary
- #click(slot : WindowSlot, right = false, shift = false, double = false)
- #click(slot_number, right = false, shift = false, double = false)
- #close
-
#closed=(closed : Bool)
If true, this window will never become ready in the future.
-
#closed? : Bool
If true, this window will never become ready in the future.
-
#content : Array(WindowSlot)
Slots specific to the window, ie.
- #cursor : WindowSlot
- #cursor=(cursor : WindowSlot)
- #drop(slot : WindowSlot, stack_mode : StackMode)
- #drop(slot_number, stack_mode : StackMode)
- #drop_cursor(stack_mode : StackMode)
- #handle_closed
- #hotbar : Array(WindowSlot)
- #id : UInt8
- #inventory : Array(WindowSlot)
- #main_hand : WindowSlot
-
#ready?
If true, this window is in sync with the server.
- #slots : Array(WindowSlot)
- #slots=(slots : Array(WindowSlot))
-
#state_id : UInt32
Used for tracking synchronization with the server.
-
#state_id=(state_id : UInt32)
Used for tracking synchronization with the server.
-
#swap_hotbar(hotbar_nr, slot : WindowSlot)
Hotbar starts at 0.
-
#swap_hotbar(hotbar_nr, slot_number)
Hotbar starts at 0.
- #swap_off_hand(slot : WindowSlot)
- #swap_off_hand(slot_number)
- #title : Chat
- #to_s(io)
-
#type_id : UInt32
PlayerWindow reuses id 0