struct LivingEntityState {Show 30 fields
effects_dirty: bool,
death_processed: bool,
invulnerable_time: i32,
last_hurt: f32,
last_hurt_by_player: Option<Uuid>,
last_hurt_by_player_memory_time: i32,
last_hurt_by_mob: Option<WeakEntity>,
last_hurt_by_mob_timestamp: i32,
last_hurt_mob: Option<WeakEntity>,
last_hurt_mob_timestamp: i32,
last_damage_source: Option<DamageSource>,
last_damage_stamp: i64,
absorption_amount: f32,
skip_drop_experience: bool,
death_time: i32,
speed: f32,
current_impulse_impact_pos: Option<DVec3>,
current_impulse_context_reset_grace_time: i32,
fall_flying: bool,
fall_flying_ticks: i32,
sprinting: bool,
sleeping_pos: Option<BlockPos>,
last_climbable_pos: Option<BlockPos>,
discard_friction: bool,
jumping: bool,
travel_input: LivingTravelInput,
rotation: LivingRotationState,
swing: LivingSwingState,
no_jump_delay: i32,
no_action_time: i32,
}Fields§
§effects_dirty: bool§death_processed: bool§invulnerable_time: i32§last_hurt: f32§last_hurt_by_player: Option<Uuid>§last_hurt_by_player_memory_time: i32§last_hurt_by_mob: Option<WeakEntity>§last_hurt_by_mob_timestamp: i32§last_hurt_mob: Option<WeakEntity>§last_hurt_mob_timestamp: i32§last_damage_source: Option<DamageSource>§last_damage_stamp: i64§absorption_amount: f32§skip_drop_experience: bool§death_time: i32§speed: f32§current_impulse_impact_pos: Option<DVec3>§current_impulse_context_reset_grace_time: i32§fall_flying: bool§fall_flying_ticks: i32§sprinting: bool§sleeping_pos: Option<BlockPos>§last_climbable_pos: Option<BlockPos>§discard_friction: bool§jumping: bool§travel_input: LivingTravelInput§rotation: LivingRotationState§swing: LivingSwingState§no_jump_delay: i32§no_action_time: i32Implementations§
Source§impl LivingEntityState
impl LivingEntityState
const fn new(speed: f32) -> Self
const fn reset_death_state(&mut self)
Trait Implementations§
Source§impl Clone for LivingEntityState
impl Clone for LivingEntityState
Source§fn clone(&self) -> LivingEntityState
fn clone(&self) -> LivingEntityState
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 !RefUnwindSafe for LivingEntityState
impl !UnwindSafe for LivingEntityState
impl Freeze for LivingEntityState
impl Send for LivingEntityState
impl Sync for LivingEntityState
impl Unpin for LivingEntityState
impl UnsafeUnpin for LivingEntityState
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<>>