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

    Constructors
    Constructor
    Description
    BombExplodeEvent(Bomb bomb, org.bukkit.entity.Player player, org.bukkit.Location location, List<org.bukkit.block.Block> affectedBlocks)
    Constructs a new BombExplodeEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BombExplodeEvent

      public BombExplodeEvent(Bomb bomb, org.bukkit.entity.Player player, org.bukkit.Location location, List<org.bukkit.block.Block> affectedBlocks)
      Constructs a new BombExplodeEvent.
      Parameters:
      bomb - the bomb that exploded
      player - the player who used the bomb
      location - the location where the bomb exploded
      affectedBlocks - 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 class org.bukkit.event.Event
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable