Rosegold::Clientbound::Respawn
Inherits Rosegold::Packets::ProtocolMapping / Rosegold::Clientbound::Packet / Rosegold::Packet / Rosegold::Event / Reference / Object
Constants
PROTOCOL_PACKET_IDS = {772_u32 => 75_u32, 774_u32 => 80_u32, 775_u32 => 82_u32}
Store the protocol mappings as a constant
Constructors
new(dimension_type : UInt32, dimension_name : String, hashed_seed : Int64, gamemode : UInt8, previous_gamemode : Int8, is_debug : Bool, is_flat : Bool, has_death_location : Bool, death_dimension_name : Nil | String, death_location : Rosegold::Vec3i | Nil, portal_cooldown : UInt32, sea_level : UInt32, data_kept : UInt8)
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)
Sourcesupports_protocol?(protocol_version : UInt32) : Bool
Helper method to check if a protocol is supported
Instance methods
callback(client)
Sourcedata_kept
Sourcedata_kept=(data_kept : UInt8)
Sourcedeath_dimension_name
Sourcedeath_dimension_name=(death_dimension_name : String | Nil)
Sourcedeath_location
Sourcedeath_location=(death_location : Vec3i | Nil)
Sourcedimension_name
Sourcedimension_name=(dimension_name : String)
Sourcedimension_type
Sourcedimension_type=(dimension_type : UInt32)
Sourcegamemode
Sourcegamemode=(gamemode : UInt8)
Sourcehas_death_location=(has_death_location : Bool)
Sourcehas_death_location?
Sourcehashed_seed
Sourcehashed_seed=(hashed_seed : Int64)
Sourceis_debug=(is_debug : Bool)
Sourceis_debug?
Sourceis_flat=(is_flat : Bool)
Sourceis_flat?
Sourceportal_cooldown
Sourceportal_cooldown=(portal_cooldown : UInt32)
Sourceprevious_gamemode
Sourceprevious_gamemode=(previous_gamemode : Int8)
Sourcesea_level
Sourcesea_level=(sea_level : UInt32)
Sourcewrite
Source