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
Constructor and Description |
---|
SpecialSpawn(EntityLiving entity,
World world,
double x,
double y,
double z,
MobSpawnerBaseLogic spawner) |
Modifier and Type | Method and Description |
---|---|
MobSpawnerBaseLogic |
getSpawner() |
getWorld, getX, getY, getZ
getEntityLiving
getEntity
public SpecialSpawn(EntityLiving entity, World world, double x, double y, double 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()