pub struct AcceptedClientMovement {
pub position: Option<DVec3>,
pub rotation: (f32, f32),
pub on_ground: bool,
pub horizontal_collision: bool,
pub movement: DVec3,
pub reset_fall_distance: bool,
}Expand description
Final state accepted from a client-authored movement packet.
Fields§
§position: Option<DVec3>Optional accepted packet position. Rotation-only packets leave this unset.
rotation: (f32, f32)Accepted yaw and pitch in degrees.
on_ground: boolAccepted on-ground flag.
horizontal_collision: boolAccepted horizontal-collision flag.
movement: DVec3Movement delta from the server position before processing the packet.
reset_fall_distance: boolWhether vanilla resets fall distance after the movement is applied.
Trait Implementations§
Source§impl Clone for AcceptedClientMovement
impl Clone for AcceptedClientMovement
Source§fn clone(&self) -> AcceptedClientMovement
fn clone(&self) -> AcceptedClientMovement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AcceptedClientMovement
Source§impl Debug for AcceptedClientMovement
impl Debug for AcceptedClientMovement
Source§impl PartialEq for AcceptedClientMovement
impl PartialEq for AcceptedClientMovement
impl StructuralPartialEq for AcceptedClientMovement
Auto Trait Implementations§
impl Freeze for AcceptedClientMovement
impl RefUnwindSafe for AcceptedClientMovement
impl Send for AcceptedClientMovement
impl Sync for AcceptedClientMovement
impl Unpin for AcceptedClientMovement
impl UnsafeUnpin for AcceptedClientMovement
impl UnwindSafe for AcceptedClientMovement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>