class
Rosegold::Clientbound::SynchronizePlayerPosition
- Rosegold::Clientbound::SynchronizePlayerPosition
- Rosegold::Clientbound::Packet
- Rosegold::Packet
- Rosegold::Event
- Reference
- Object
Overview
relative_flags: x/y/z/yaw/pitch. If a flag is set, its value is relative to the current player position/look.
Included Modules
Defined in:
rosegold/packets/clientbound/synchronize_player_position.crConstant Summary
-
PROTOCOL_PACKET_IDS =
{772_u32 => 65_u8}
-
Store the protocol mappings as a constant
Constructors
Class Method Summary
- .[](protocol_version : UInt32) : UInt8
-
.default_packet_id : UInt8
Define default packet ID (typically the latest/most common version)
-
.packet_id : UInt8
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) : UInt8
Get packet ID for specific protocol version
- .read(packet)
-
.supported_protocols : Array(UInt32)
Helper method to get all supported protocols
-
.supports_protocol?(protocol_version : UInt32) : Bool
Helper method to check if a protocol is supported
Instance Method Summary
- #callback(client)
- #dismount_vehicle=(dismount_vehicle : Bool)
- #dismount_vehicle? : Bool
- #feet(previous_feet : Vec3d) : Vec3d
- #look(previous_look : Look) : Look
- #pitch_raw : Float32
- #pitch_raw=(pitch_raw : Float32)
- #relative_flags : UInt8
- #relative_flags=(relative_flags : UInt8)
- #teleport_id : UInt32
- #teleport_id=(teleport_id : UInt32)
-
#velocity_x : Float64
MC 1.21.6+ additional velocity fields
-
#velocity_x=(velocity_x : Float64)
MC 1.21.6+ additional velocity fields
-
#velocity_y : Float64
MC 1.21.6+ additional velocity fields
-
#velocity_y=(velocity_y : Float64)
MC 1.21.6+ additional velocity fields
-
#velocity_z : Float64
MC 1.21.6+ additional velocity fields
-
#velocity_z=(velocity_z : Float64)
MC 1.21.6+ additional velocity fields
- #write : Bytes
- #x_raw : Float64
- #x_raw=(x_raw : Float64)
- #y_raw : Float64
- #y_raw=(y_raw : Float64)
- #yaw_raw : Float32
- #yaw_raw=(yaw_raw : Float32)
- #z_raw : Float64
- #z_raw=(z_raw : Float64)
Macros inherited from module Rosegold::Packets::ProtocolMapping
packet_ids(mappings)
packet_ids
Class methods inherited from class Rosegold::Clientbound::Packet
new_raw(bytes)
new_raw,
state
state
Instance methods inherited from class Rosegold::Packet
callback(client_or_server)
callback,
to_s(io)
to_s,
write : Bytes
write
Constructor Detail
Class Method Detail
Define default packet ID (typically the latest/most common version)
Provide backward compatibility with existing packet_id class getter Use the first protocol's packet ID for registration compatibility
Get packet ID for specific protocol version
Helper method to check if a protocol is supported