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.

  • Classes
    Class
    Description
    Per-pet-type declaration of vanilla Bukkit goals that PetGoalInstaller should keep on the live mob at spawn time, instead of stripping every goal via Bukkit.getMobGoals().removeAllGoals(mob).
    Central registry of every PetGoalRetention declared as a static field on a pet class.