pub struct EntityLandingContext {
pub velocity: DVec3,
pub is_living_entity: bool,
pub suppresses_bounce: bool,
}Expand description
Entity facts needed by Block.updateEntityMovementAfterFallOn.
Fields§
§velocity: DVec3Entity velocity before the block landing hook adjusts it.
is_living_entity: boolWhether the entity uses vanilla living-entity bounce behavior.
suppresses_bounce: boolWhether vanilla bounce behavior should be suppressed.
Implementations§
Trait Implementations§
Source§impl Clone for EntityLandingContext
impl Clone for EntityLandingContext
Source§fn clone(&self) -> EntityLandingContext
fn clone(&self) -> EntityLandingContext
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 EntityLandingContext
Source§impl Debug for EntityLandingContext
impl Debug for EntityLandingContext
Source§impl PartialEq for EntityLandingContext
impl PartialEq for EntityLandingContext
impl StructuralPartialEq for EntityLandingContext
Auto Trait Implementations§
impl Freeze for EntityLandingContext
impl RefUnwindSafe for EntityLandingContext
impl Send for EntityLandingContext
impl Sync for EntityLandingContext
impl Unpin for EntityLandingContext
impl UnsafeUnpin for EntityLandingContext
impl UnwindSafe for EntityLandingContext
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<>>