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
public class SpawnerSpawnEvent extends EntitySpawnEvent
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
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SpawnerSpawnEvent(Entity spawnee, CreatureSpawner spawner)
-
Method Summary
Modifier and Type Method Description CreatureSpawner
getSpawner()
Methods inherited from class org.bukkit.event.entity.EntitySpawnEvent
getHandlerList, getHandlers, getLocation, isCancelled, setCancelled