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 ClassesModifier and TypeClassDescriptionstatic enumRepresents the source of a stack operation.Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionSpawnerStackEvent(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 TypeMethodDescriptionstatic @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronousMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 spawnerlocation- the location of the spawneroldStackSize- the old stack sizenewStackSize- the new stack sizesource- 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 spawnerlocation- the location of the spawneroldStackSize- the old stack sizenewStackSize- the new stack sizesource- the source of the stack operationentityType- 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 spawnerlocation- the location of the spawneroldStackSize- the old stack sizenewStackSize- the new stack size
-
-
Method Details
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-