- 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.
-
Method Summary
boolean
addEffect(net.minecraft.world.entity.LivingEntity affectedEntity,
@NotNull net.minecraft.world.effect.MobEffectInstance effect,
net.minecraft.world.entity.Entity sourceEntity)
Called when an effect is about to be applied to an entity.