class Rosegold::Clientbound::PlayerPositionAndLook

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.cr

Constructors

Class Method Summary

Instance Method Summary

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

[View source]
def self.new(location : Vec3d, look : Look, teleport_id : UInt32, dismount_vehicle = false) #

[View source]

Class Method Detail

def self.packet_id #

[View source]
def self.read(packet) #

[View source]

Instance Method Detail

def callback(client) #

[View source]
def dismount_vehicle=(dismount_vehicle : Bool) #

[View source]
def dismount_vehicle? : Bool #

[View source]
def feet(reference : Vec3d) #

[View source]
def look(reference : Look) #

[View source]
def pitch_raw : Float32 #

[View source]
def pitch_raw=(pitch_raw : Float32) #

[View source]
def relative_flags : UInt8 #

[View source]
def relative_flags=(relative_flags : UInt8) #

[View source]
def teleport_id : UInt32 #

[View source]
def teleport_id=(teleport_id : UInt32) #

[View source]
def write : Bytes #

[View source]
def x_raw : Float64 #

[View source]
def x_raw=(x_raw : Float64) #

[View source]
def y_raw : Float64 #

[View source]
def y_raw=(y_raw : Float64) #

[View source]
def yaw_raw : Float32 #

[View source]
def yaw_raw=(yaw_raw : Float32) #

[View source]
def z_raw : Float64 #

[View source]
def z_raw=(z_raw : Float64) #

[View source]