Rosegold::ProtocolState
Inherits Reference / Object
Constants
CONFIGURATION = ProtocolState.new("CONFIGURATION")
HANDSHAKING = ProtocolState.new("HANDSHAKING")
LOGIN = ProtocolState.new("LOGIN")
PLAY = ProtocolState.new("PLAY")
STATUS = ProtocolState.new("STATUS")
Constructors
new(name : String)
SourceClass methods
register(packet : Packet.class)
SourceInstance methods
clientbound
Sourceclientbound_for_protocol(protocol : UInt32) : Hash(UInt32, Clientbound::Packet.class)
Sourceget_clientbound_packet(packet_id : UInt32, protocol : UInt32)
Get packet class for specific packet ID and protocol version
get_serverbound_packet(packet_id : UInt32, protocol : UInt32)
Sourcename
Sourceregister(packet : Clientbound::Packet.class)
Sourceregister(packet : Serverbound::Packet.class)
Sourceserverbound
Sourceserverbound_for_protocol(protocol : UInt32) : Hash(UInt32, Serverbound::Packet.class)
Source