Class TownyDispenserDamageEntityEvent

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

public class TownyDispenserDamageEntityEvent extends TownyDamageEvent
Since:
0.97.0.9
  • Constructor Details

    • TownyDispenserDamageEntityEvent

      public TownyDispenserDamageEntityEvent(org.bukkit.Location loc, org.bukkit.entity.Entity entity, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause, TownBlock townblock, boolean cancelled, org.bukkit.block.Block dispenserBlock)
  • Method Details

    • getDispenserBlock

      public org.bukkit.block.Block getDispenserBlock()
      Gets the dispenser block that caused the damage.
    • getHandlerList

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

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event