Class SpawnerExplodeEvent
java.lang.Object
org.bukkit.event.Event
github.nighter.smartspawner.api.events.SpawnerEvent
github.nighter.smartspawner.api.events.SpawnerBreakEvent
github.nighter.smartspawner.api.events.SpawnerExplodeEvent
Called when a spawner is destroyed by an explosion.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionSpawnerExplodeEvent(org.bukkit.entity.Entity entity, org.bukkit.Location location, int quantity, boolean exploded) Creates a new spawner explode event.SpawnerExplodeEvent(org.bukkit.entity.Entity entity, org.bukkit.Location location, int quantity, boolean exploded, @Nullable org.bukkit.entity.EntityType entityType) Creates a new spawner explode 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
-
SpawnerExplodeEvent
public SpawnerExplodeEvent(org.bukkit.entity.Entity entity, org.bukkit.Location location, int quantity, boolean exploded) Creates a new spawner explode event.- Parameters:
entity- the entity that caused the explosionlocation- the location where the spawner was destroyedquantity- the quantity of the spawnerexploded- whether the spawner was successfully exploded
-
SpawnerExplodeEvent
public SpawnerExplodeEvent(org.bukkit.entity.Entity entity, org.bukkit.Location location, int quantity, boolean exploded, @Nullable @Nullable org.bukkit.entity.EntityType entityType) Creates a new spawner explode event.- Parameters:
entity- the entity that caused the explosionlocation- the location where the spawner was destroyedquantity- the quantity of the spawnerexploded- whether the spawner was successfully explodedentityType- the spawned entity type of the exploded spawner
-
-
Method Details
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Overrides:
getHandlersin classSpawnerBreakEvent
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-