public static class LivingSpawnEvent.CheckSpawn extends LivingSpawnEvent
LivingSpawnEvent.AllowDespawn, LivingSpawnEvent.CheckSpawn, LivingSpawnEvent.SpecialSpawn
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.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, getZ
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public 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