Class SpawnerOpenGUIEvent
java.lang.Object
org.bukkit.event.Event
github.nighter.smartspawner.api.events.SpawnerEvent
github.nighter.smartspawner.api.events.SpawnerOpenGUIEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Called when a player opens a spawner GUI.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionSpawnerOpenGUIEvent(org.bukkit.entity.Player player, org.bukkit.Location location, org.bukkit.entity.EntityType entityType, int stackSize, boolean refresh) Creates a new spawner GUI open 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
-
SpawnerOpenGUIEvent
public SpawnerOpenGUIEvent(org.bukkit.entity.Player player, org.bukkit.Location location, org.bukkit.entity.EntityType entityType, int stackSize, boolean refresh) Creates a new spawner GUI open event.- Parameters:
player- the player opening the GUIlocation- the location of the spawnerentityType- the entity type of the spawnerstackSize- the stack size of the spawnerrefresh- whether this is a GUI refresh
-
-
Method Details
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Overrides:
getHandlersin classSpawnerEvent
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-