pub struct PositionLook {
pub x: f64,
pub y: f64,
pub z: f64,
pub yaw: f32,
pub pitch: f32,
pub on_ground: bool,
}Expand description
position_look (serverbound play, id 0x06).
Fields§
§x: f64x
y: f64y
z: f64z
yaw: f32yaw
pitch: f32pitch
on_ground: boolonGround
Trait Implementations§
Source§impl Clone for PositionLook
impl Clone for PositionLook
Source§impl Debug for PositionLook
impl Debug for PositionLook
Source§impl Decode for PositionLook
impl Decode for PositionLook
Source§fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
Decodes one value, advancing the reader past it.
Source§impl Encode for PositionLook
impl Encode for PositionLook
Source§fn encode(&self, w: &mut BytesMut) -> EncodeResult
fn encode(&self, w: &mut BytesMut) -> EncodeResult
Appends the encoding of
self to w.Source§impl From<PositionLook> for ServerboundPlayPacket
impl From<PositionLook> for ServerboundPlayPacket
Source§fn from(p: PositionLook) -> Self
fn from(p: PositionLook) -> Self
Converts to this type from the input type.
Source§impl Generate for PositionLook
Available on crate feature testgen only.
impl Generate for PositionLook
Available on crate feature
testgen only.Source§impl Packet for PositionLook
impl Packet for PositionLook
Source§impl PartialEq for PositionLook
impl PartialEq for PositionLook
impl StructuralPartialEq for PositionLook
Auto Trait Implementations§
impl Freeze for PositionLook
impl RefUnwindSafe for PositionLook
impl Send for PositionLook
impl Sync for PositionLook
impl Unpin for PositionLook
impl UnsafeUnpin for PositionLook
impl UnwindSafe for PositionLook
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more