Class SpawnerBreakEvent
java.lang.Object
org.bukkit.event.Event
github.nighter.smartspawner.api.events.SpawnerEvent
github.nighter.smartspawner.api.events.SpawnerBreakEvent
- Direct Known Subclasses:
SpawnerExplodeEvent, SpawnerPlayerBreakEvent
Called when a spawner is broken by a player or explosion.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionSpawnerBreakEvent(org.bukkit.entity.Entity entity, org.bukkit.Location location, int quantity) Creates a new spawner break event.SpawnerBreakEvent(org.bukkit.entity.Entity entity, org.bukkit.Location location, int quantity, @Nullable org.bukkit.entity.EntityType entityType) Creates a new spawner break 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, isAsynchronous
-
Constructor Details
-
SpawnerBreakEvent
public SpawnerBreakEvent(org.bukkit.entity.Entity entity, org.bukkit.Location location, int quantity) Creates a new spawner break event.- Parameters:
entity- the entity that broke the spawnerlocation- the location of the broken spawnerquantity- the quantity of the broken spawner
-
SpawnerBreakEvent
public SpawnerBreakEvent(org.bukkit.entity.Entity entity, org.bukkit.Location location, int quantity, @Nullable @Nullable org.bukkit.entity.EntityType entityType) Creates a new spawner break event.- Parameters:
entity- the entity that broke the spawnerlocation- the location of the broken spawnerquantity- the quantity of the broken spawnerentityType- the spawned entity type of the broken spawner (nullable for item spawners)
-
-
Method Details
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Overrides:
getHandlersin classSpawnerEvent
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-