Class LivingEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.living.LivingEvent
Direct Known Subclasses:
AnimalTameEvent, ArmorHurtEvent, CanContinueSleepingEvent, EffectParticleModificationEvent, EnderManAngerEvent, LivingBreatheEvent, LivingChangeTargetEvent, LivingConversionEvent, LivingDamageEvent, LivingDeathEvent, LivingDestroyBlockEvent, LivingDropsEvent, LivingDrownEvent, LivingEntityUseItemEvent, LivingEquipmentChangeEvent, LivingEvent.LivingJumpEvent, LivingEvent.LivingVisibilityEvent, LivingExperienceDropEvent, LivingFallEvent, LivingGetProjectileEvent, LivingHealEvent, LivingIncomingDamageEvent, LivingKnockBackEvent, LivingShieldBlockEvent, LivingSwapItemsEvent, LivingUseTotemEvent, MobEffectEvent, PlayerEvent, SpawnClusterSizeEvent

public abstract class LivingEvent extends EntityEvent
LivingEvent is fired whenever an event involving a LivingEntity occurs.
If a method utilizes this Event as its parameter, the method will receive every child event of this class.

All children of this event are fired on the NeoForge.EVENT_BUS.
  • Field Details

    • livingEntity

      private final net.minecraft.world.entity.LivingEntity livingEntity
  • Constructor Details

    • LivingEvent

      public LivingEvent(net.minecraft.world.entity.LivingEntity entity)
  • Method Details

    • getEntity

      public net.minecraft.world.entity.LivingEntity getEntity()
      Overrides:
      getEntity in class EntityEvent