class Rosegold::ProtocolState

Defined in:

rosegold/packets/packet.cr

Constant Summary

HANDSHAKING = ProtocolState.new("HANDSHAKING")
LOGIN = ProtocolState.new("LOGIN")
PLAY = ProtocolState.new("PLAY")
STATUS = ProtocolState.new("STATUS")

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(name : String) #

[View source]

Class Method Detail

def self.register(packet : Packet.class) #

[View source]

Instance Method Detail

def clientbound : Hash(UInt8, Rosegold::Clientbound::Packet.class) #

[View source]
def name : String #

[View source]
def register(packet : Clientbound::Packet.class) #

[View source]
def register(packet : Serverbound::Packet.class) #

[View source]
def serverbound : Hash(UInt8, Rosegold::Serverbound::Packet.class) #

[View source]