/** * Remove a predefined goal from a {@link com.dsh105.echopet.api.pet.Pet}'s AI * * @param pet {@link com.dsh105.echopet.api.pet.Pet} to remove the goal from * @param goalType type of goal */ public void removeGoal(IPet pet, GoalType goalType) { if (pet == null) { EchoPet.LOG.severe( "Failed to remove PetGoal from Pet AI through the EchoPetAPI. Pet cannot be null."); return; } pet.getEntityPet().getPetGoalSelector().removeGoal(goalType.getGoalString()); }