class Rosegold::Clientbound::PlayerPositionAndLook
- Rosegold::Clientbound::PlayerPositionAndLook
- 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.
Defined in:
rosegold/packets/clientbound/player_position_and_look.crConstructors
- .new(x_raw : Float64, y_raw : Float64, z_raw : Float64, yaw_raw : Float32, pitch_raw : Float32, relative_flags : UInt8, teleport_id : UInt32, dismount_vehicle : Bool)
- .new(location : Vec3d, look : Look, teleport_id : UInt32, dismount_vehicle = false)
Class Method Summary
Instance Method Summary
- #callback(client)
- #dismount_vehicle=(dismount_vehicle : Bool)
- #dismount_vehicle? : Bool
- #feet(reference : Vec3d)
- #look(reference : 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)
- #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)
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
def self.new(x_raw : Float64, y_raw : Float64, z_raw : Float64, yaw_raw : Float32, pitch_raw : Float32, relative_flags : UInt8, teleport_id : UInt32, dismount_vehicle : Bool)
#