public static class LivingSpawnEvent.CheckSpawn extends LivingSpawnEvent
LivingSpawnEvent.AllowDespawn, LivingSpawnEvent.CheckSpawn, LivingSpawnEvent.SpecialSpawnLivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructingEvent.HasResult, Event.Result| Constructor and Description |
|---|
CheckSpawn(EntityLiving entity,
World world,
float x,
float y,
float z)
Deprecated.
Use
CheckSpawn#CheckSpawn(EntityLiving, World, float, float, float, boolean) instead |
CheckSpawn(EntityLiving entity,
World world,
float x,
float y,
float z,
boolean isSpawner)
CheckSpawn is fired when an Entity is about to be spawned.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSpawner() |
getWorld, getX, getY, getZgetEntityLivinggetEntitygetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic CheckSpawn(EntityLiving entity, World world, float x, float y, float z, boolean isSpawner)
entity - the spawning entityworld - the world to spawn inx - x coordinatey - y coordinatez - z coordinateisSpawner - true if this spawn is done by a MobSpawner,
false if it this spawn is coming from a WorldSpawner@Deprecated public CheckSpawn(EntityLiving entity, World world, float x, float y, float z)
CheckSpawn#CheckSpawn(EntityLiving, World, float, float, float, boolean) instead