Package de.Keyle.MyPet.api.goal
package de.Keyle.MyPet.api.goal
Which vanilla Bukkit goals survive on a live pet.
MyPet normally strips a mob's vanilla goals when it becomes a pet, so its own AI is in
sole control. A PetGoalRetention declared on a pet class names the goals that should
be kept anyway for that species; PetGoalRetentionRegistry collects them and the
goal installer consults it at spawn time.
-
ClassesClassDescriptionPer-pet-type declaration of vanilla Bukkit goals that
PetGoalInstallershould keep on the live mob at spawn time, instead of stripping every goal viaBukkit.getMobGoals().removeAllGoals(mob).Central registry of everyPetGoalRetentiondeclared as a static field on a pet class.