public static class LivingSpawnEvent.CheckSpawn extends LivingSpawnEvent
LivingSpawnEvent.AllowDespawn, LivingSpawnEvent.CheckSpawn, LivingSpawnEvent.SpecialSpawnLivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing| Constructor and Description |
|---|
CheckSpawn(EntityLiving entity,
IWorld world,
double x,
double y,
double z,
MobSpawnerBaseLogic spawner)
CheckSpawn is fired when an Entity is about to be spawned.
|
| Modifier and Type | Method and Description |
|---|---|
MobSpawnerBaseLogic |
getSpawner() |
boolean |
isSpawner() |
getWorld, getX, getY, getZgetEntityLivinggetEntitypublic CheckSpawn(EntityLiving entity, IWorld world, double x, double y, double z, @Nullable MobSpawnerBaseLogic spawner)
entity - the spawning entityworld - the world to spawn inx - x coordinatey - y coordinatez - z coordinatespawner - position of the MobSpawner
null if it this spawn is coming from a WorldSpawnerpublic boolean isSpawner()
@Nullable public MobSpawnerBaseLogic getSpawner()