class Rosegold::Serverbound::PickItem

Overview

Swap out an empty space on the hotbar with the item in the given inventory slot. The server selects an empty slot, swaps the items, and then sends 3 packets:

Defined in:

rosegold/packets/serverbound/pick_item.cr

Constructors

Class Method Summary

Instance Method Summary

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(slot_number : UInt16) #

[View source]

Class Method Detail

def self.packet_id #

[View source]

Instance Method Detail

def slot_number : UInt16 #

[View source]
def slot_number=(slot_number : UInt16) #

[View source]
def write : Bytes #

[View source]