public class LivingEvent extends EntityEvent
Event
as its parameter, the method will
receive every child event of this class.MinecraftForge.EVENT_BUS
.Modifier and Type | Class and Description |
---|---|
static class |
LivingEvent.LivingJumpEvent
LivingJumpEvent is fired when an Entity jumps.
This event is fired whenever an Entity jumps in EntityLivingBase.jump() , EntityMagmaCube.jump() ,
and EntityLivingBase.jump() .This event is fired via the ForgeHooks.onLivingJump(EntityLivingBase) .This event is not Cancelable .This event does not have a result. |
static class |
LivingEvent.LivingUpdateEvent
LivingUpdateEvent is fired when an Entity is updated.
|
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private EntityLivingBase |
entityLiving |
Constructor and Description |
---|
LivingEvent(EntityLivingBase entity) |
Modifier and Type | Method and Description |
---|---|
EntityLivingBase |
getEntityLiving() |
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final EntityLivingBase entityLiving
public LivingEvent(EntityLivingBase entity)
public EntityLivingBase getEntityLiving()