Cancellable
public class SpawnerSpawnEvent extends EntitySpawnEvent
If a Spawner Spawn event is cancelled, the entity will not spawn.
Event.Result
entity
Constructor | Description |
---|---|
SpawnerSpawnEvent(Entity spawnee,
CreatureSpawner spawner) |
Modifier and Type | Method | Description |
---|---|---|
CreatureSpawner |
getSpawner() |
getEntity, getEntityType
getHandlerList, getHandlers, getLocation, isCancelled, setCancelled
getEventName, isAsynchronous
public SpawnerSpawnEvent(Entity spawnee, CreatureSpawner spawner)
public CreatureSpawner getSpawner()
Copyright © 2018. All rights reserved.