Class MobEffectEvent

java.lang.Object
net.neoforged.bus.api.Event
Direct Known Subclasses:
MobEffectEvent.Added, MobEffectEvent.Applicable, MobEffectEvent.Expired, MobEffectEvent.Remove

public abstract class MobEffectEvent extends LivingEvent
This event is fired when an interaction between a LivingEntity and MobEffectInstance happens.

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

  • Field Details

    • effectInstance

      @Nullable protected final @Nullable MobEffectInstance effectInstance
  • Constructor Details

  • Method Details

    • getEffectInstance

      @Nullable public @Nullable MobEffectInstance getEffectInstance()