Interface ServerEvents.LivingEntity.Effect.Remove

Enclosing class:
ServerEvents.LivingEntity.Effect
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 ServerEvents.LivingEntity.Effect.Remove
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    removeEffect(net.minecraft.world.entity.LivingEntity entity, @Nullable net.minecraft.world.effect.MobEffectInstance effect)
    Called when an effect is about to be removed from an entity.
  • Method Details

    • removeEffect

      boolean removeEffect(@NotNull net.minecraft.world.entity.LivingEntity entity, @Nullable @Nullable net.minecraft.world.effect.MobEffectInstance effect)
      Called when an effect is about to be removed from an entity.
      Parameters:
      entity - the entity from which the effect will be removed
      effect - the effect instance to be removed, or null if no effect is specified
      Returns:
      true if the effect should be removed, otherwise false