class
Rosegold::ProtocolState
- Rosegold::ProtocolState
- Reference
- Object
Defined in:
rosegold/packets/packet.crConstant Summary
-
CONFIGURATION =
ProtocolState.new("CONFIGURATION")
-
HANDSHAKING =
ProtocolState.new("HANDSHAKING")
-
LOGIN =
ProtocolState.new("LOGIN")
-
PLAY =
ProtocolState.new("PLAY")
-
STATUS =
ProtocolState.new("STATUS")
Constructors
Class Method Summary
Instance Method Summary
- #clientbound : Hash({UInt8, UInt32}, Rosegold::Clientbound::Packet.class)
-
#clientbound_for_protocol(protocol : UInt32) : Hash(UInt8, Clientbound::Packet.class)
Legacy methods for backward compatibility
-
#get_clientbound_packet(packet_id : UInt8, protocol : UInt32)
Get packet class for specific packet ID and protocol version
- #get_serverbound_packet(packet_id : UInt8, protocol : UInt32)
- #name : String
- #register(packet : Clientbound::Packet.class)
- #register(packet : Serverbound::Packet.class)
- #serverbound : Hash({UInt8, UInt32}, Rosegold::Serverbound::Packet.class)
- #serverbound_for_protocol(protocol : UInt32) : Hash(UInt8, Serverbound::Packet.class)
Constructor Detail
Class Method Detail
Instance Method Detail
Legacy methods for backward compatibility
def get_clientbound_packet(packet_id : UInt8, protocol : UInt32)
#
Get packet class for specific packet ID and protocol version