validTarget

public static boolean validTarget(Player owner, LivingEntity target)