Class MobEffectEvent.Applicable

Enclosing class:
MobEffectEvent

public static class MobEffectEvent.Applicable extends MobEffectEvent
This event is fired to check if a MobEffectInstance can be applied to an entity. This event is not Cancelable. This event has a result.

ALLOW will apply this mob effect. DENY will not apply this mob effect. DEFAULT will run vanilla logic to determine if this mob effect is applicable in LivingEntity.canBeAffected(net.minecraft.world.effect.MobEffectInstance).