class

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

Class methods

[](protocol_version : UInt32) : UInt32

Generate the method for elegant access

Source
default_packet_id

Define default packet ID (typically the latest/most common version)

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

Source
read(packet)
Source
state
Source
supported_protocols

Helper method to get all supported protocols

Source
supports_protocol?(protocol_version : UInt32) : Bool

Helper method to check if a protocol is supported

Source

Instance methods

allow_server_listings
Source
allow_server_listings=(allow_server_listings : Bool)
Source
chat_colors
Source
chat_colors=(chat_colors : Bool)
Source
chat_mode
Source
chat_mode=(chat_mode : UInt32)
Source
displayed_skin_parts
Source
displayed_skin_parts=(displayed_skin_parts : UInt8)
Source
enable_text_filtering
Source
enable_text_filtering=(enable_text_filtering : Bool)
Source
locale
Source
locale=(locale : String)
Source
main_hand
Source
main_hand=(main_hand : UInt32)
Source
particle_status
Source
particle_status=(particle_status : UInt32)
Source
view_distance
Source
view_distance=(view_distance : UInt8)
Source
write
Source