Class ProjectilePreExplodeEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class ProjectilePreExplodeEvent extends ProjectileEvent implements org.bukkit.event.Cancellable
Called right before calculations for an explosion occurs. This is useful if you want to:
  • Completely override everything about an explosion
  • Cancel an explosion early

For more general usage, see ProjectileExplodeEvent.

  • Constructor Details

  • Method Details

    • getExplosion

      public Explosion getExplosion()
    • setExplosion

      public void setExplosion(Explosion explosion)
    • 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
    • getHandlers

      @NotNull public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()