Class EntityHealEvent
java.lang.Object
com.welcome234.pluginsystem.events.EntityHealEvent
Called when an entity heals
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the entity who has healedintGets the amount of health this entity has healed bybooleanGets whether this event is cancelledvoidsetCancelled(boolean cancelled)Sets the cancellation status of this event
-
Constructor Details
-
EntityHealEvent
public EntityHealEvent(int entityID, int healAmount)
-
-
Method Details
-
getEntity
Gets the entity who has healed- Returns:
- Entity instance
-
getHealAmount
public int getHealAmount()Gets the amount of health this entity has healed by- Returns:
- Health healed
-
isCancelled
public boolean isCancelled()Gets whether this event is cancelled- Returns:
- Whether cancelled
-
setCancelled
public void setCancelled(boolean cancelled)Sets the cancellation status of this event- Parameters:
cancelled- Whether cancelled
-