Class MobEffectEvent

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

public 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 MinecraftForge.EVENT_BUS.

  • Field Details

    • effectInstance

      @Nullable protected final @Nullable MobEffectInstance effectInstance
  • Constructor Details

  • Method Details

    • getEffectInstance

      @Nullable public @Nullable MobEffectInstance getEffectInstance()