applyInvulnerability

public static void applyInvulnerability(Object owner, LivingEntity target, boolean value, int durationTicks)