use of com.magmaguy.elitemobs.api.EliteMobHealEvent in project EliteMobs by MagmaGuy.
the class EliteEntity method fullHeal.
public void fullHeal() {
EliteMobHealEvent eliteMobHealEvent = new EliteMobHealEvent(this, true);
new EventCaller(eliteMobHealEvent);
if (eliteMobHealEvent.isCancelled())
return;
setHealth(this.maxHealth);
this.health = maxHealth;
damagers.clear();
}
use of com.magmaguy.elitemobs.api.EliteMobHealEvent in project EliteMobs by MagmaGuy.
the class EliteEntity method heal.
public void heal(double healAmount) {
EliteMobHealEvent eliteMobHealEvent = new EliteMobHealEvent(this, healAmount);
new EventCaller(eliteMobHealEvent);
if (eliteMobHealEvent.isCancelled())
return;
setHealth(health + healAmount);
}
Aggregations