Enum entmet_lib::entities::entity::EntityState
source · #[repr(u8)]pub enum EntityState {
IsOnFire = 1,
IsCrouching = 2,
IsSprinting = 8,
IsSwimming = 16,
IsInvisible = 32,
HasGlowingEffect = 64,
IsFlyingWithAnElytra = 128,
}Expand description
An enum of the possible entity states
Variants§
IsOnFire = 1
The mob is on fire
IsCrouching = 2
The mob is crouching
IsSprinting = 8
The mob is sprinting
IsSwimming = 16
The mob is swimming
IsInvisible = 32
The mob is invisible
HasGlowingEffect = 64
The mob has the glowing effect
IsFlyingWithAnElytra = 128
The mob is flying with an elytra
Trait Implementations§
source§impl Clone for EntityState
impl Clone for EntityState
source§fn clone(&self) -> EntityState
fn clone(&self) -> EntityState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for EntityState
impl Debug for EntityState
source§impl Into<u8> for EntityState
impl Into<u8> for EntityState
source§impl PartialEq for EntityState
impl PartialEq for EntityState
source§fn eq(&self, other: &EntityState) -> bool
fn eq(&self, other: &EntityState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for EntityState
impl Eq for EntityState
impl StructuralPartialEq for EntityState
Auto Trait Implementations§
impl Freeze for EntityState
impl RefUnwindSafe for EntityState
impl Send for EntityState
impl Sync for EntityState
impl Unpin for EntityState
impl UnwindSafe for EntityState
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