public static class LivingSpawnEvent.SpecialSpawn extends LivingSpawnEvent
ForgeEventFactory.doSpecialSpawn(EntityLiving, World, float, float, float).Cancelable.HasResultMinecraftForge.EVENT_BUS.LivingSpawnEvent.AllowDespawn, LivingSpawnEvent.CheckSpawn, LivingSpawnEvent.SpecialSpawnLivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructingEvent.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, getZgetEntityLivinggetEntitygetListenerList, 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()