Expand description
Shared fields for all living entities.
Mirrors the runtime fields that vanilla defines on LivingEntity (and
Entity for invulnerableTime). Entities that implement LivingEntity
embed this struct and expose it via LivingEntity::living_base(), just like
EntityBase is used for core Entity fields.
StructsΒ§
- Active
Item UseState - Vanilla active item-use state stored on
LivingEntity. - Equipment
Attribute πModifier Key - Living
Entity Base - Common runtime fields shared by all living entities.
- Living
Entity πState - Living
Rotation State - Vanilla living-entity body/head rotation state.
- Living
Swing State - Arm-swing animation state stored on a living entity.
- Living
Travel Input - Movement input stored on vanilla
LivingEntity. - MobEffect
Display State - Synchronized living entity-data values derived from active mob effects.
- MobEffect
Instance - Runtime mob-effect state.
- Swing
Description π
EnumsΒ§
- MobEffect
Sync Change - A queued mob-effect packet change produced by living effect state.
- MobEffect
Sync Packet - Concrete mob-effect packet ready to send to a player connection.
- MobEffect
Tick πResult
ConstantsΒ§
- DEATH_
DURATION - Duration in ticks of the death animation before entity removal.
- DEFAULT_
SWING_ DURATION - Vanilla default
SwingAnimationduration in ticks. - HURT_
DURATION_ TICKS - Duration in ticks of the vanilla hurt animation.
- MAX_
EFFECT_ πAMPLIFIER - MIN_
EFFECT_ πAMPLIFIER - POST_
IMPULSE_ πGRACE_ TICKS - SPRINT_
SPEED_ πMODIFIER_ AMOUNT
FunctionsΒ§
- clamp_
effect_ πamplifier - living_
entity_ πfrom_ weak - living_
is_ πdead - sync_
dirty_ mob_ effects - Pushes newly dirty mob-effect state into a living entityβs synced data.
- weak_
living_ πentity
Type AliasesΒ§
- Active
MobEffect - Active mob-effect state stored on a living entity.