Interface ServerMobEffectEvents.BeforeAdd

Enclosing class:
ServerMobEffectEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ServerMobEffectEvents.BeforeAdd
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    beforeAdd(net.minecraft.world.effect.MobEffectInstance effectInstance, net.minecraft.world.entity.LivingEntity entity, EffectEventContext ctx)
    Called before an effect is added.
  • Method Details

    • beforeAdd

      void beforeAdd(net.minecraft.world.effect.MobEffectInstance effectInstance, net.minecraft.world.entity.LivingEntity entity, EffectEventContext ctx)
      Called before an effect is added.
      Parameters:
      effectInstance - the instance of the status effect being added
      entity - the entity on which the effect is being added
      ctx - context