Entity.EntityHealth
Index
Constructors
Methods
Constructors
constructor
Returns EntityHealth
Methods
get
- Invocation may throw an error
No such method.
Returns number
Entity's current health value.
getMax
- Invocation may throw an error
No such method.
Returns number
Entity's maximum health value.
set
Sets entity's current health value.
Invocation may throw an errorNo such method.
Parameters
health: number
health value to be set
Returns void
setMax
Sets entity's maximum health value.
Invocation may throw an errorNo such method.
Parameters
maxHealth: number
Returns void
Class used to manipulate entity's health.
Consider using Entity.getHealth, Entity.setHealth, Entity.getMaxHealth and Entity.setMaxHealth instead.