struct EntityMovementTrace {
movement_this_tick: VecDeque<EntityMovement>,
final_movements_this_tick: Vec<EntityMovement>,
}Fields§
§movement_this_tick: VecDeque<EntityMovement>§final_movements_this_tick: Vec<EntityMovement>Implementations§
Source§impl EntityMovementTrace
impl EntityMovementTrace
fn record(&mut self, movement: EntityMovement)
fn remove_latest_recording(&mut self)
fn reset(&mut self)
fn take_for_block_effects( &mut self, old_position: DVec3, position: DVec3, ) -> Vec<EntityMovement>
fn last_for_block_effects(&self) -> Vec<EntityMovement>
Trait Implementations§
Source§impl Debug for EntityMovementTrace
impl Debug for EntityMovementTrace
Source§impl Default for EntityMovementTrace
impl Default for EntityMovementTrace
Source§fn default() -> EntityMovementTrace
fn default() -> EntityMovementTrace
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EntityMovementTrace
impl RefUnwindSafe for EntityMovementTrace
impl Send for EntityMovementTrace
impl Sync for EntityMovementTrace
impl Unpin for EntityMovementTrace
impl UnsafeUnpin for EntityMovementTrace
impl UnwindSafe for EntityMovementTrace
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
§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<>>