public class LivingSpawnEvent extends LivingEvent
Event
as its parameter, the method will
receive every child event of this class.world
contains the world in which this living Entity is being spawned.x
contains the x-coordinate this entity is being spawned at.y
contains the y-coordinate this entity is being spawned at.z
contains the z-coordinate this entity is being spawned at.MinecraftForge.EVENT_BUS
.修飾子とタイプ | クラスと説明 |
---|---|
static class |
LivingSpawnEvent.AllowDespawn
Fired each tick for despawnable mobs to allow control over despawning.
|
static class |
LivingSpawnEvent.CheckSpawn
Fires before mob spawn events.
|
static class |
LivingSpawnEvent.SpecialSpawn
SpecialSpawn is fired when an Entity is to be spawned.
|
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Event.HasResult, Event.Result
コンストラクタと説明 |
---|
LivingSpawnEvent(MobEntity entity,
IWorld world,
double x,
double y,
double z) |
修飾子とタイプ | メソッドと説明 |
---|---|
IWorld |
getWorld() |
double |
getX() |
double |
getY() |
double |
getZ() |
getEntityLiving
getEntity
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup