public class SpawnerSpawnEvent extends EntitySpawnEvent
If a Spawner Spawn event is cancelled, the entity will not spawn.
Event.Resultentity| Constructor and Description | 
|---|
SpawnerSpawnEvent(Entity spawnee,
                 CreatureSpawner spawner)  | 
| Modifier and Type | Method and Description | 
|---|---|
CreatureSpawner | 
getSpawner()  | 
getHandlerList, getHandlers, getLocation, isCancelled, setCancelledgetEntity, getEntityTypecallEvent, getEventName, isAsynchronouspublic SpawnerSpawnEvent(@NotNull
                         Entity spawnee,
                         @NotNull
                         CreatureSpawner spawner)
@NotNull public CreatureSpawner getSpawner()
Copyright © 2022. All rights reserved.