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, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private AbstractSpawner |
spawner |
private SpawnReason |
spawnReason |
Constructor and Description |
---|
SpecialSpawn(MobEntity entity,
World world,
double x,
double y,
double z,
AbstractSpawner spawner,
SpawnReason spawnReason) |
Modifier and Type | Method and Description |
---|---|
AbstractSpawner |
getSpawner() |
SpawnReason |
getSpawnReason() |
getWorld, getX, getY, getZ
getEntityLiving
getEntity
@Nullable private final AbstractSpawner spawner
private final SpawnReason spawnReason
public SpecialSpawn(MobEntity entity, World world, double x, double y, double z, @Nullable AbstractSpawner spawner, SpawnReason spawnReason)
spawner
- the position of a tileentity or approximate position of an entity that initiated the spawn if any@Nullable public AbstractSpawner getSpawner()
public SpawnReason getSpawnReason()