pub enum MovePacket {
Flying {
on_ground: bool,
},
Position {
pos: Vec3,
on_ground: bool,
},
Look {
yaw: f32,
pitch: f32,
on_ground: bool,
},
PositionLook {
pos: Vec3,
yaw: f32,
pitch: f32,
on_ground: bool,
},
}Expand description
The one movement packet of a tick.
Variants§
Flying
flying (C03): only on-ground.
Position
position (C04).
Look
look (C05).
PositionLook
position_look (C06).
Implementations§
Trait Implementations§
Source§impl Clone for MovePacket
impl Clone for MovePacket
impl Copy for MovePacket
Source§impl Debug for MovePacket
impl Debug for MovePacket
Source§impl PartialEq for MovePacket
impl PartialEq for MovePacket
impl StructuralPartialEq for MovePacket
Auto Trait Implementations§
impl Forget for MovePacket
impl Freeze for MovePacket
impl RefUnwindSafe for MovePacket
impl Send for MovePacket
impl Sync for MovePacket
impl Unpin for MovePacket
impl UnsafeUnpin for MovePacket
impl UnwindSafe for MovePacket
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