Class TownyPlayerDamageEntityEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.damage.TownyDamageEvent
com.palmergames.bukkit.towny.event.damage.TownyPlayerDamageEntityEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class TownyPlayerDamageEntityEvent extends TownyDamageEvent
Part of the API which lets Towny's war and other plugins modify Towny's plot-permission-decision outcomes.
Author:
LlmDl
  • Constructor Details

    • TownyPlayerDamageEntityEvent

      public TownyPlayerDamageEntityEvent(org.bukkit.Location location, org.bukkit.entity.Entity harmedEntity, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause, TownBlock townblock, boolean cancelled, org.bukkit.entity.Player player)
      This event is not fired and this class is only a placeholder.
      Parameters:
      location - Location of the entity being damaged.
      harmedEntity - Entity getting exploded.
      cause - DamageCause.
      townblock - TownBlock or null if in the wilderness.
      cancelled - Whether Towny will cancel this already.
      player - Player causing the damage to the harmedEntity.
  • Method Details

    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getAttackingPlayer

      public org.bukkit.entity.Player getAttackingPlayer()
      Returns:
      Player harming the entity.