class

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)
Source

Class methods

register(packet : Packet.class)
Source

Instance methods

clientbound
Source
clientbound_for_protocol(protocol : UInt32) : Hash(UInt32, Clientbound::Packet.class)
Source
get_clientbound_packet(packet_id : UInt32, protocol : UInt32)

Get packet class for specific packet ID and protocol version

Source
get_serverbound_packet(packet_id : UInt32, protocol : UInt32)
Source
name
Source
register(packet : Clientbound::Packet.class)
Source
register(packet : Serverbound::Packet.class)
Source
serverbound
Source
serverbound_for_protocol(protocol : UInt32) : Hash(UInt32, Serverbound::Packet.class)
Source