class Rosegold::Serverbound::ClickWindow
- Rosegold::Serverbound::ClickWindow
- Rosegold::Serverbound::Packet
- Rosegold::Packet
- Rosegold::Event
- Reference
- Object
Defined in:
rosegold/packets/serverbound/click_window.crConstructors
Class Method Summary
- .click(window, slot_number, right = false, shift = false, double = false)
- .drop(window, slot_number, stack_mode : StackMode)
- .drop_cursor(window, stack_mode : StackMode)
- .packet_id
-
.swap_hotbar(window, hotbar_nr, slot_number)
Hotbar starts at 0.
- .swap_off_hand(window, slot_number)
Instance Method Summary
- #button : Int8
- #button=(button : Int8)
- #changed_slots : Array(WindowSlot)
- #changed_slots=(changed_slots : Array(WindowSlot))
- #cursor : Slot
- #cursor=(cursor : Slot)
- #mode : Mode
- #mode=(mode : Mode)
- #slot_number : Int16
- #slot_number=(slot_number : Int16)
- #state_id : Int32
- #state_id=(state_id : Int32)
- #window_id : UInt8
- #window_id=(window_id : UInt8)
- #write : Bytes
Class methods inherited from class Rosegold::Serverbound::Packet
new_raw(bytes)
new_raw,
state
state
Instance methods inherited from class Rosegold::Packet
callback(client_or_server)
callback,
to_s(io)
to_s,
write : Bytes
write
Constructor Detail
def self.new(mode : Rosegold::Serverbound::ClickWindow::Mode, button : Int8, slot_number : Int16, changed_slots : Array(Rosegold::WindowSlot), window_id : UInt8, state_id : Int32, cursor : Rosegold::Slot)
#