Class LivingEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.entity.EntityEvent
-
- net.minecraftforge.event.entity.living.LivingEvent
-
- Direct Known Subclasses:
AnimalTameEvent
,EnderTeleportEvent
,LivingAttackEvent
,LivingConversionEvent
,LivingDamageEvent
,LivingDeathEvent
,LivingDestroyBlockEvent
,LivingDropsEvent
,LivingEntityUseItemEvent
,LivingEquipmentChangeEvent
,LivingEvent.LivingJumpEvent
,LivingEvent.LivingUpdateEvent
,LivingEvent.LivingVisibilityEvent
,LivingExperienceDropEvent
,LivingFallEvent
,LivingHealEvent
,LivingHurtEvent
,LivingKnockBackEvent
,LivingPackSizeEvent
,LivingSetAttackTargetEvent
,LivingSpawnEvent
,LootingLevelEvent
,PlayerEvent
,PotionColorCalculationEvent
,PotionEvent
,SleepingLocationCheckEvent
public class LivingEvent extends EntityEvent
LivingEvent is fired whenever an event involving Living entities occurs.
If a method utilizes thisEvent
as its parameter, the method will receive every child event of this class.
All children of this event are fired on theMinecraftForge.EVENT_BUS
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LivingEvent.LivingJumpEvent
LivingJumpEvent is fired when an Entity jumps.
This event is fired whenever an Entity jumps inEntityLivingBase#jump()
,EntityMagmaCube#jump()
, andEntityHorse#jump()
.
This event is fired via theForgeHooks#onLivingJump(EntityLivingBase)
.
This event is notCancelable
.
This event does not have a result.static class
LivingEvent.LivingUpdateEvent
LivingUpdateEvent is fired when an Entity is updated.static class
LivingEvent.LivingVisibilityEvent
-
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.Size
-
-
Field Summary
Fields Modifier and Type Field Description private LivingEntity
entityLiving
-
Constructor Summary
Constructors Constructor Description LivingEvent(LivingEntity entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LivingEntity
getEntityLiving()
-
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
-
-
-
-
Field Detail
-
entityLiving
private final LivingEntity entityLiving
-
-
Constructor Detail
-
LivingEvent
public LivingEvent(LivingEntity entity)
-
-
Method Detail
-
getEntityLiving
public LivingEntity getEntityLiving()
-
-