Class TownyExplosionDamagesEntityEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.damage.TownyDamageEvent
com.palmergames.bukkit.towny.event.damage.TownyExplosionDamagesEntityEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Part of the API which lets Towny's war and other plugins modify Towny's
plot-permission-decision outcomes.
TownyExplosionDamagesEntityEvents are thrown when an explosion
occurs in a Towny world, causing damage to an entity.
- When an entity explosion, block explosion or lightning damages an entity.
- When an explosion would damage a Hanging entity.
- When a pig is zapped by lightning.
- When an explosion would damage a Vehicle.
- When an entity explosion, block explosion or lightning damages an entity.
- When an explosion would damage a Hanging entity.
- When a pig is zapped by lightning.
- When an explosion would damage a Vehicle.
- Author:
- LlmDl
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTownyExplosionDamagesEntityEvent
(org.bukkit.Location location, org.bukkit.entity.Entity harmedEntity, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause, TownBlock townblock, boolean cancelled) Event thrown when an explosion damages an entity. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
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
-
TownyExplosionDamagesEntityEvent
public TownyExplosionDamagesEntityEvent(org.bukkit.Location location, org.bukkit.entity.Entity harmedEntity, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause, TownBlock townblock, boolean cancelled) Event thrown when an explosion damages an entity. Use ignorecancelled = true in order to filter out explosions Towny will already have stopped.- 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.
-
-
Method Details
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-