Interface ServerMobEffectEvents.BeforeRemove

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.BeforeRemove
  • Method Summary

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

    • beforeRemove

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