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ยง
- 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 - Vanilla arm-swing animation state stored on
LivingEntity. - 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.
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. - INFINITE_
EFFECT_ ๐DURATION - 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 - weak_
living_ ๐entity
Type Aliasesยง
- Active
MobEffect - Active mob-effect state stored on a living entity.