Package org.bukkit.event.entity
Class SpawnerSpawnEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.EntitySpawnEvent
org.bukkit.event.entity.SpawnerSpawnEvent
- All Implemented Interfaces:
Cancellable
Called when an entity is spawned into a world by a spawner.
If a Spawner Spawn event is cancelled, the entity will not spawn.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.entity.EntityEvent
entity
-
Constructor Summary
ConstructorDescriptionSpawnerSpawnEvent
(@NotNull Entity spawnee, @Nullable CreatureSpawner spawner) -
Method Summary
Modifier and TypeMethodDescriptionGets the spawner tile state, or null when the entity is spawned from a minecart spawner.Methods inherited from class org.bukkit.event.entity.EntitySpawnEvent
getHandlerList, getHandlers, getLocation, isCancelled, setCancelled
Methods inherited from class org.bukkit.event.entity.EntityEvent
getEntity, getEntityType
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
SpawnerSpawnEvent
-
-
Method Details
-
getSpawner
Gets the spawner tile state, or null when the entity is spawned from a minecart spawner.- Returns:
- the spawner tile state
-