Class SpawnerStackEvent

java.lang.Object
org.bukkit.event.Event
github.nighter.smartspawner.api.events.SpawnerStackEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class SpawnerStackEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Called when spawners are stacked together.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Represents the source of a stack operation.

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

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

    Constructors
    Constructor
    Description
    SpawnerStackEvent(org.bukkit.entity.Player player, org.bukkit.Location location, int oldStackSize, int newStackSize)
    Creates a new spawner stack event with default PLACE source.
    SpawnerStackEvent(org.bukkit.entity.Player player, org.bukkit.Location location, int oldStackSize, int newStackSize, SpawnerStackEvent.StackSource source)
    Creates a new spawner stack event.
    SpawnerStackEvent(org.bukkit.entity.Player player, org.bukkit.Location location, int oldStackSize, int newStackSize, SpawnerStackEvent.StackSource source, @Nullable org.bukkit.entity.EntityType entityType)
    Creates a new spawner stack 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

    • SpawnerStackEvent

      public SpawnerStackEvent(org.bukkit.entity.Player player, org.bukkit.Location location, int oldStackSize, int newStackSize, SpawnerStackEvent.StackSource source)
      Creates a new spawner stack event.
      Parameters:
      player - the player who stacked the spawner
      location - the location of the spawner
      oldStackSize - the old stack size
      newStackSize - the new stack size
      source - the source of the stack operation
    • SpawnerStackEvent

      public SpawnerStackEvent(org.bukkit.entity.Player player, org.bukkit.Location location, int oldStackSize, int newStackSize, SpawnerStackEvent.StackSource source, @Nullable @Nullable org.bukkit.entity.EntityType entityType)
      Creates a new spawner stack event.
      Parameters:
      player - the player who stacked the spawner
      location - the location of the spawner
      oldStackSize - the old stack size
      newStackSize - the new stack size
      source - the source of the stack operation
      entityType - the spawned entity type of the spawner
    • SpawnerStackEvent

      public SpawnerStackEvent(org.bukkit.entity.Player player, org.bukkit.Location location, int oldStackSize, int newStackSize)
      Creates a new spawner stack event with default PLACE source.
      Parameters:
      player - the player who stacked the spawner
      location - the location of the spawner
      oldStackSize - the old stack size
      newStackSize - the new stack size
  • Method Details

    • getHandlers

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

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