class Rosegold::Clientbound::PlayerInfo

Defined in:

rosegold/packets/clientbound/player_info.cr

Constructors

Class Method Summary

Instance Method Summary

Class methods inherited from class Rosegold::Clientbound::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(action : Rosegold::Clientbound::PlayerInfo::Action, players : Array(Rosegold::PlayerList::Entry) = Array(PlayerList::Entry).new) #

[View source]

Class Method Detail

def self.packet_id #

[View source]
def self.read(io) #

[View source]

Instance Method Detail

def action : Action #

[View source]
def action=(action : Action) #

[View source]
def callback(client) #

[View source]
def players : Array(PlayerList::Entry) #

[View source]
def players=(players : Array(PlayerList::Entry)) #

[View source]
def write : Bytes #

TODO rewrite without .not_nil! checks


[View source]