Class EntityHealEvent

java.lang.Object
com.welcome234.pluginsystem.events.EntityHealEvent

public class EntityHealEvent extends Object
Called when an entity heals
  • Constructor Details

    • EntityHealEvent

      public EntityHealEvent(int entityID, int healAmount)
  • Method Details

    • getEntity

      public Entity 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