Rosegold::Serverbound::ClientInformation
Inherits Rosegold::Packets::ProtocolMapping / Rosegold::Serverbound::Packet / Rosegold::Packet / Rosegold::Event / Reference / Object
Constants
PROTOCOL_PACKET_IDS = {772_u32 => 0_u32, 774_u32 => 0_u32, 775_u32 => 0_u32}
Store the protocol mappings as a constant
Constructors
new(locale : String = "en_US", view_distance : UInt8 = 10_u8, chat_mode : UInt32 = 0_u32, chat_colors : Bool = true, displayed_skin_parts : UInt8 = 127_u8, main_hand : UInt32 = 1_u32, enable_text_filtering : Bool = false, allow_server_listings : Bool = true, particle_status : UInt32 = 0_u32)
SourceClass methods
packet_id
Provide backward compatibility with existing packet_id class getter Use the first protocol's packet ID for registration compatibility
packet_id_for_protocol(protocol_version : UInt32) : UInt32
Get packet ID for specific protocol version (returns UInt32 for VarInt encoding in write methods)
read(packet)
Sourcestate
Sourcesupports_protocol?(protocol_version : UInt32) : Bool
Helper method to check if a protocol is supported
Instance methods
allow_server_listings
Sourceallow_server_listings=(allow_server_listings : Bool)
Sourcechat_colors
Sourcechat_colors=(chat_colors : Bool)
Sourcechat_mode
Sourcechat_mode=(chat_mode : UInt32)
Sourcedisplayed_skin_parts
Sourcedisplayed_skin_parts=(displayed_skin_parts : UInt8)
Sourceenable_text_filtering
Sourceenable_text_filtering=(enable_text_filtering : Bool)
Sourcelocale
Sourcelocale=(locale : String)
Sourcemain_hand
Sourcemain_hand=(main_hand : UInt32)
Sourceparticle_status
Sourceparticle_status=(particle_status : UInt32)
Sourceview_distance
Sourceview_distance=(view_distance : UInt8)
Sourcewrite
Source