LivingEntity
This page will document the LivingEntity object
A living entity is any entity which has health etc. Examples include pigs, sheep and zombies.
LivingEntity
objects inherit methods from Entity
isAnimal(): boolean
isAnimal(): boolean
Returns whether this entity is an animal
isPassive(): boolean
isPassive(): boolean
Returns whether this entity is passive. Checks for whether this entity has a target, e.g. an angry wolf.
isHostile(): boolean
isHostile(): boolean
Returns whether this entity is hostile
isNeutral(): boolean
isNeutral(): boolean
Returns whether this entity is neutral
isPlayer(): boolean
isPlayer(): boolean
Returns whether this entity is a player
isLocalPlayer(): boolean
isLocalPlayer(): boolean
Returns whether this entity is the local player
getLastZ(): double
getLastZ(): double
Returns the Z position of the entity in the last tick
getHealth(): float
getHealth(): float
Returns this entity's health
getMaxHealth(): float
getMaxHealth(): float
Returns the maximum health of this entity
getHurtTime(): int
getHurtTime(): int
Returns the hurt time of the entity
getMaxHurtTime(): int
getMaxHurtTime(): int
Returns the maximum amont of hurt time this entity can have
isDead(): boolean
isDead(): boolean
Returns whether this entity is dead
Last updated