pub struct EntityFlags {
pub is_on_fire: Option<bool>,
pub is_sneaking: Option<bool>,
pub is_sprinting: Option<bool>,
pub is_swimming: Option<bool>,
pub is_baby: Option<bool>,
}Expand description
Entity flags (is_on_fire, is_sneaking, etc.)
Fields§
§is_on_fire: Option<bool>§is_sneaking: Option<bool>§is_sprinting: Option<bool>§is_swimming: Option<bool>§is_baby: Option<bool>Implementations§
Source§impl EntityFlags
impl EntityFlags
fn test(&self, flags: EntityRefFlags) -> bool
Trait Implementations§
Source§impl Clone for EntityFlags
impl Clone for EntityFlags
Source§fn clone(&self) -> EntityFlags
fn clone(&self) -> EntityFlags
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 moreAuto Trait Implementations§
impl Freeze for EntityFlags
impl RefUnwindSafe for EntityFlags
impl Send for EntityFlags
impl Sync for EntityFlags
impl Unpin for EntityFlags
impl UnsafeUnpin for EntityFlags
impl UnwindSafe for EntityFlags
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<>>