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
- Since:
- 0.97.0.9
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTownyDispenserDamageEntityEvent
(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 Summary
Modifier and TypeMethodDescriptionorg.bukkit.block.Block
Gets the dispenser block that caused the damage.static org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
Methods inherited from class com.palmergames.bukkit.towny.event.damage.TownyDamageEvent
getCause, getEntity, getLocation, getMessage, getTown, getTownBlock, hasTownBlock, isCancelled, isInWilderness, setCancelled, setMessage
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
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 classorg.bukkit.event.Event
-