Class PreSpawnerSpawnEvent
java.lang.Object
org.bukkit.event.Event
com.destroystokyo.paper.event.entity.PreCreatureSpawnEvent
com.destroystokyo.paper.event.entity.PreSpawnerSpawnEvent
- All Implemented Interfaces:
Cancellable
Called before an entity is spawned into a world by a spawner.
This only includes the spawner's location and not the full BlockState snapshot for performance reasons.
If you really need it you have to get the spawner yourself.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionPreSpawnerSpawnEvent
(@NotNull Location location, @NotNull EntityType type, @NotNull Location spawnerLocation) -
Method Summary
Methods inherited from class com.destroystokyo.paper.event.entity.PreCreatureSpawnEvent
getHandlerList, getHandlers, getReason, getSpawnLocation, getType, isCancelled, setCancelled, setShouldAbortSpawn, shouldAbortSpawn
Methods inherited from class org.bukkit.event.Event
asynchronous, callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PreSpawnerSpawnEvent
-
-
Method Details
-
getSpawnerLocation
-