Cancellablepublic class CreatureSpawnEvent extends EntitySpawnEvent
If a Creature Spawn event is cancelled, the creature will not spawn.
| Modifier and Type | Class | Description | 
|---|---|---|
| static class  | CreatureSpawnEvent.SpawnReason | An enum to specify the type of spawning | 
Event.Resultentity| Constructor | Description | 
|---|---|
| CreatureSpawnEvent(LivingEntity spawnee,
                  CreatureSpawnEvent.SpawnReason spawnReason) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| LivingEntity | getEntity() | Returns the Entity involved in this event | 
| CreatureSpawnEvent.SpawnReason | getSpawnReason() | Gets the reason for why the creature is being spawned. | 
getEntityTypegetHandlerList, getHandlers, getLocation, isCancelled, setCancelledgetEventName, isAsynchronouspublic CreatureSpawnEvent(LivingEntity spawnee, CreatureSpawnEvent.SpawnReason spawnReason)
public LivingEntity getEntity()
EntityEventgetEntity in class EntityEventpublic CreatureSpawnEvent.SpawnReason getSpawnReason()
Copyright © 2018. All rights reserved.