LivingEntity
This page will document the LivingEntity object
isAnimal(): boolean
isAnimal(): booleanReturns whether this entity is an animal
isPassive(): boolean
isPassive(): booleanReturns whether this entity is passive. Checks for whether this entity has a target, e.g. an angry wolf.
isHostile(): boolean
isHostile(): booleanReturns whether this entity is hostile
isNeutral(): boolean
isNeutral(): booleanReturns whether this entity is neutral
isPlayer(): boolean
isPlayer(): booleanReturns whether this entity is a player
isLocalPlayer(): boolean
isLocalPlayer(): booleanReturns whether this entity is the local player
getLastZ(): double
getLastZ(): doubleReturns the Z position of the entity in the last tick
getHealth(): float
getHealth(): floatReturns this entity's health
getMaxHealth(): float
getMaxHealth(): floatReturns the maximum health of this entity
getHurtTime(): int
getHurtTime(): intReturns the hurt time of the entity
getMaxHurtTime(): int
getMaxHurtTime(): intReturns the maximum amont of hurt time this entity can have
isDead(): boolean
isDead(): booleanReturns whether this entity is dead
Last updated