public static class LivingSpawnEvent.SpecialSpawn extends LivingSpawnEvent
ForgeEventFactory.doSpecialSpawn(EntityLiving, World, float, float, float)
.Cancelable
.Event.HasResult
MinecraftForge.EVENT_BUS
.LivingSpawnEvent.AllowDespawn, LivingSpawnEvent.CheckSpawn, LivingSpawnEvent.SpecialSpawn
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Constructor and Description |
---|
SpecialSpawn(EntityLiving entity,
World world,
float x,
float y,
float z)
Deprecated.
Use
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
@Deprecated public SpecialSpawn(EntityLiving entity, World world, float x, float y, float z)
SpecialSpawn(EntityLiving, World, float, float, float, MobSpawnerBaseLogic)
with originating spawner instance or nullpublic SpecialSpawn(EntityLiving entity, World world, float x, float y, float z, MobSpawnerBaseLogic spawner)
spawner
- the position of a tileentity or approximate position of an entity that initiated the spawn if anypublic MobSpawnerBaseLogic getSpawner()