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
Event.HasResult, Event.Result
コンストラクタと説明 |
---|
SpecialSpawn(MobEntity entity,
World world,
double x,
double y,
double z,
AbstractSpawner spawner,
SpawnReason spawnReason) |
修飾子とタイプ | メソッドと説明 |
---|---|
AbstractSpawner |
getSpawner() |
SpawnReason |
getSpawnReason() |
getWorld, getX, getY, getZ
getEntityLiving
getEntity
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
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()