Class SpawnerPlayerBreakEvent

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

public class SpawnerPlayerBreakEvent extends SpawnerBreakEvent implements org.bukkit.event.Cancellable
Called when a spawner is broken by a player. This event is cancellable.
  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
    SpawnerPlayerBreakEvent(org.bukkit.entity.Player player, org.bukkit.Location location, int quantity)
    Creates a new spawner player break event.
    SpawnerPlayerBreakEvent(org.bukkit.entity.Player player, org.bukkit.Location location, int quantity, @Nullable org.bukkit.entity.EntityType entityType)
    Creates a new spawner player break 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

    Methods inherited from interface org.bukkit.event.Cancellable

    isCancelled, setCancelled
  • Constructor Details

    • SpawnerPlayerBreakEvent

      public SpawnerPlayerBreakEvent(org.bukkit.entity.Player player, org.bukkit.Location location, int quantity)
      Creates a new spawner player break event.
      Parameters:
      player - the player who broke the spawner
      location - the location of the broken spawner
      quantity - the quantity of the spawner
    • SpawnerPlayerBreakEvent

      public SpawnerPlayerBreakEvent(org.bukkit.entity.Player player, org.bukkit.Location location, int quantity, @Nullable @Nullable org.bukkit.entity.EntityType entityType)
      Creates a new spawner player break event.
      Parameters:
      player - the player who broke the spawner
      location - the location of the broken spawner
      quantity - the quantity of the spawner
      entityType - the spawned entity type of the broken 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()