Class SpawnerExplodeEvent

java.lang.Object
org.bukkit.event.Event

public class SpawnerExplodeEvent extends SpawnerBreakEvent
Called when a spawner is destroyed by an explosion.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpawnerExplodeEvent(org.bukkit.entity.Entity entity, org.bukkit.Location location, int quantity, boolean exploded)
    Creates a new spawner explode event.
    SpawnerExplodeEvent(org.bukkit.entity.Entity entity, org.bukkit.Location location, int quantity, boolean exploded, @Nullable org.bukkit.entity.EntityType entityType)
    Creates a new spawner explode event.
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
     

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class Object

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

    • SpawnerExplodeEvent

      public SpawnerExplodeEvent(org.bukkit.entity.Entity entity, org.bukkit.Location location, int quantity, boolean exploded)
      Creates a new spawner explode event.
      Parameters:
      entity - the entity that caused the explosion
      location - the location where the spawner was destroyed
      quantity - the quantity of the spawner
      exploded - whether the spawner was successfully exploded
    • SpawnerExplodeEvent

      public SpawnerExplodeEvent(org.bukkit.entity.Entity entity, org.bukkit.Location location, int quantity, boolean exploded, @Nullable @Nullable org.bukkit.entity.EntityType entityType)
      Creates a new spawner explode event.
      Parameters:
      entity - the entity that caused the explosion
      location - the location where the spawner was destroyed
      quantity - the quantity of the spawner
      exploded - whether the spawner was successfully exploded
      entityType - the spawned entity type of the exploded spawner
  • Method Details

    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Overrides:
      getHandlers in class SpawnerBreakEvent
    • getHandlerList

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