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