Struct HealthInputs
pub struct HealthInputs {Show 17 fields
pub tick: i32,
pub millis: i64,
pub health: f32,
pub max_health: f32,
pub absorption: f32,
pub armor: i32,
pub food: i32,
pub saturation: f32,
pub kind: HeartKind,
pub regeneration: bool,
pub hunger: bool,
pub hardcore: bool,
pub damage_cooldown: bool,
pub air: i32,
pub max_air: i32,
pub under_water: bool,
pub vehicle_hearts: i32,
}Fields§
§tick: i32Hud.tickCount.
millis: i64Util.getMillis() now.
health: f32§max_health: f32§absorption: f32§armor: i32§food: i32§saturation: f32§kind: HeartKind§regeneration: bool§hunger: bool§hardcore: bool§damage_cooldown: booldamageCooldownTime > 0.
air: i32getAirSupply, getMaxAirSupply, isEyeInFluid(WATER).
max_air: i32§under_water: bool§vehicle_hearts: i32getVehicleMaxHearts of the ridden living vehicle (0 = none).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HealthInputs
impl RefUnwindSafe for HealthInputs
impl Send for HealthInputs
impl Sync for HealthInputs
impl Unpin for HealthInputs
impl UnsafeUnpin for HealthInputs
impl UnwindSafe for HealthInputs
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