Struct entmet_lib::entities::entity::LivingEntity
source · pub struct LivingEntity {
pub hand_state: Mask<HandStates>,
pub health: f32,
pub potion_effect_color: i32,
pub potion_effect_ambient: bool,
pub arrows_inside: i32,
pub bee_stingers_inside: i32,
pub location_of_bed_currently_sleeping_in: Option<(i32, i32, i32)>,
/* private fields */
}Expand description
An interface if a living entity
Fields§
§hand_state: Mask<HandStates>The state of the hands of the entity
health: f32The health of the entity
potion_effect_color: i32The color of the current potion effect
potion_effect_ambient: boolWether the potion effect color is visible or not
arrows_inside: i32How many arrows are stuck inside of the entity
bee_stingers_inside: i32How many bee stings the entity has
location_of_bed_currently_sleeping_in: Option<(i32, i32, i32)>Optional location of the bed that the entity is currently sleeping in
Trait Implementations§
source§impl Clone for LivingEntity
impl Clone for LivingEntity
source§fn clone(&self) -> LivingEntity
fn clone(&self) -> LivingEntity
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 LivingEntity
impl Debug for LivingEntity
source§impl Default for LivingEntity
impl Default for LivingEntity
source§impl Deref for LivingEntity
impl Deref for LivingEntity
source§impl DerefMut for LivingEntity
impl DerefMut for LivingEntity
source§impl PartialEq for LivingEntity
impl PartialEq for LivingEntity
source§fn eq(&self, other: &LivingEntity) -> bool
fn eq(&self, other: &LivingEntity) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for LivingEntity
Auto Trait Implementations§
impl Freeze for LivingEntity
impl RefUnwindSafe for LivingEntity
impl Send for LivingEntity
impl Sync for LivingEntity
impl Unpin for LivingEntity
impl UnwindSafe for LivingEntity
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