public static class LivingSpawnEvent.SpecialSpawn extends LivingSpawnEvent
ForgeEventFactory.doSpecialSpawn(EntityLiving, World, float, float, float)
.Cancelable
.HasResult
MinecraftForge.EVENT_BUS
.LivingSpawnEvent.AllowDespawn, LivingSpawnEvent.CheckSpawn, LivingSpawnEvent.SpecialSpawn
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private MobSpawnerBaseLogic |
spawner |
Constructor and Description |
---|
SpecialSpawn(EntityLiving entity,
World world,
float x,
float y,
float z)
Deprecated.
Use
SpecialSpawn#SpecialSpawn(EntityLiving, World, float, float, float, MobSpawnerBaseLogic)
with originating spawner instance or null |
SpecialSpawn(EntityLiving entity,
World world,
float x,
float y,
float z,
MobSpawnerBaseLogic spawner) |
Modifier and Type | Method and Description |
---|---|
MobSpawnerBaseLogic |
getSpawner() |
getWorld, getX, getY, getZ
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
@Nullable private final MobSpawnerBaseLogic spawner
@Deprecated public SpecialSpawn(EntityLiving entity, World world, float x, float y, float z)
SpecialSpawn#SpecialSpawn(EntityLiving, World, float, float, float, MobSpawnerBaseLogic)
with originating spawner instance or nullpublic SpecialSpawn(EntityLiving entity, World world, float x, float y, float z, @Nullable MobSpawnerBaseLogic spawner)
spawner
- the position of a tileentity or approximate position of an entity that initiated the spawn if any@Nullable public MobSpawnerBaseLogic getSpawner()