Class TownBlockExplosionTestEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.damage.TownBlockExplosionTestEvent
public class TownBlockExplosionTestEvent
extends org.bukkit.event.Event
An event thrown when Towny will determine the explosion status of
a townblock, or plot, in a town.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionTownBlockExplosionTestEvent
(TownBlock townBlock, Town town, boolean explosion) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
@NotNull Town
getTown()
@NotNull TownBlock
boolean
void
setExplosion
(boolean explosion) Sets the explosion status and outcome of the event.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
TownBlockExplosionTestEvent
-
-
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
-
getTownBlock
- Returns:
- the TownBlock which is having its explosion status decided.
-
getTown
- Returns:
- the Town where this test is made.
-
isExplosion
public boolean isExplosion()- Returns:
- true if the townblock has explosions on.
-
setExplosion
public void setExplosion(boolean explosion) Sets the explosion status and outcome of the event.- Parameters:
explosion
- whether the event will result in explosions being on or off in the townblock.
-