Rosegold::Clientbound::SynchronizePlayerPosition
Inherits Rosegold::Packets::ProtocolMapping / Rosegold::Clientbound::Packet / Rosegold::Packet / Rosegold::Event / Reference / Object
relative_flags: x/y/z/yaw/pitch. If a flag is set, its value is relative to the current player position/look.
Constants
PROTOCOL_PACKET_IDS = {772_u32 => 65_u32, 774_u32 => 70_u32, 775_u32 => 72_u32}
Store the protocol mappings as a constant
Constructors
Class 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)
Sourcefeet(previous_feet : Vec3d) : Vec3d
Sourcelook(previous_look : Look) : Look
Sourcepitch_raw
Sourcepitch_raw=(pitch_raw : Float32)
Sourcerelative_flags
Sourceteleport_id
Sourceteleport_id=(teleport_id : UInt32)
Sourcevelocity(previous_velocity : Vec3d) : Vec3d
Sourcewrite
Sourcex_raw
Sourcex_raw=(x_raw : Float64)
Sourcey_raw
Sourcey_raw=(y_raw : Float64)
Sourceyaw_raw
Sourceyaw_raw=(yaw_raw : Float32)
Sourcez_raw
Sourcez_raw=(z_raw : Float64)
Source