appliesTo

public boolean appliesTo(LivingEntity target, Player attacker)

Whether this debuff bonus applies to the given target for the given attacker.