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 EntityHorse#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, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private LivingEntity |
entityLiving |
Constructor and Description |
---|
LivingEvent(LivingEntity entity) |
Modifier and Type | Method and Description |
---|---|
LivingEntity |
getEntityLiving() |
getEntity
private final LivingEntity entityLiving
public LivingEvent(LivingEntity entity)
public LivingEntity getEntityLiving()