Class BombExplodeEvent
java.lang.Object
org.bukkit.event.Event
dev.drawethree.xprison.api.bombs.events.BombExplodeEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public final class BombExplodeEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Event fired when a
Bomb
explodes.
This event is called right before the explosion effects are applied, allowing plugins to modify or cancel the explosion.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionBombExplodeEvent
(Bomb bomb, org.bukkit.entity.Player player, org.bukkit.Location location, List<org.bukkit.block.Block> affectedBlocks) Constructs a newBombExplodeEvent
. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
Gets the static handler list for this event.org.bukkit.event.HandlerList
boolean
void
setCancelled
(boolean cancelled) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
BombExplodeEvent
public BombExplodeEvent(Bomb bomb, org.bukkit.entity.Player player, org.bukkit.Location location, List<org.bukkit.block.Block> affectedBlocks) Constructs a newBombExplodeEvent
.- Parameters:
bomb
- the bomb that explodedplayer
- the player who used the bomblocation
- the location where the bomb explodedaffectedBlocks
- the list of blocks affected by the explosion
-
-
Method Details
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Gets the static handler list for this event.- Returns:
- the handler list
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-