public static class LivingSpawnEvent.SpecialSpawn extends LivingSpawnEvent
ForgeEventFactory#doSpecialSpawn(EntityLiving, World, float, float, float).Cancelable.Event.HasResultMinecraftForge.EVENT_BUS.LivingSpawnEvent.AllowDespawn, LivingSpawnEvent.CheckSpawn, LivingSpawnEvent.SpecialSpawnLivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.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, getZgetEntityLivinggetEntity@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()