Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionnothing in MyPet calls this and it silently forces
PetLevelEvent.isQuiet()totrue; usePetLevelEvent(Pet, int, boolean)and state the quiet flagMyPet no longer uses this builder; the menus describe a slot with the immutableItemAppearancerecord instead. Use that for new code.usegetPets().size(), which this equalsa world group may hold more than one pet binding, which aBiMapcannot represent. UseMyPetPlayer.getWorldGroupBindings(). This method returns a snapshot containing only the first binding per group.a player may have more than one active pet. UsePetManager.deactivatePets(MyPetPlayer, boolean)to deactivate all of them, orPetManager.deactivatePet(MyPetPlayer, Pet, boolean)to name the one you mean. This overload deactivates all of them.useMath.clamp(long, int, int), which this now delegates touseMath.clamp(long, int, int), which this now delegates touseMath.clamp(long, int, int), which this now delegates tointernal helper with a single caller; do not use from addonsinternal helper with a single caller; do not use from addonsno replacement in the API; this was only used by MyPet itself, which now keeps its own copy. UseHttpClientdirectly.no replacement in the API; this was only used by MyPet itself, which now keeps its own copy. UseHttpClientdirectly.
-
Deprecated ClassesClassDescriptionMyPet no longer uses this builder; the menus describe a slot with the immutable
ItemAppearancerecord instead. Use that for new code.
-
Deprecated MethodsMethodDescriptionthe name says "the pet" from an era when a player could only have one out, and it silently answers for the primary now that they can have several. Use
MyPetPlayer.getPets()when the answer should cover the whole roster, orMyPetPlayer.getPrimaryPet()when the primary really is what you mean. Kept working for addons built before multi-pet support.usegetPets().size(), which this equalsa world group may hold more than one pet binding, which aBiMapcannot represent. UseMyPetPlayer.getWorldGroupBindings(). This method returns a snapshot containing only the first binding per group.a player may have more than one active pet. UsePetManager.deactivatePets(MyPetPlayer, boolean)to deactivate all of them, orPetManager.deactivatePet(MyPetPlayer, Pet, boolean)to name the one you mean. This overload deactivates all of them.answers for the primary pet only, which was the whole roster until multi-pet shipped. UsePetManager.getPets(MyPetPlayer)for anything that should affect every pet the player has out, orPetManager.getPrimaryPet(MyPetPlayer)when the primary is genuinely what you want.useMath.clamp(long, int, int), which this now delegates touseMath.clamp(long, int, int), which this now delegates touseMath.clamp(long, int, int), which this now delegates tointernal helper with a single caller; do not use from addonsinternal helper with a single caller; do not use from addonsuseAnnotationLookup.find(Class, Class), which this now delegates tointernal helper with a single caller; do not use from addonsno replacement in the API; this was only used by MyPet itself, which now keeps its own copy. UseHttpClientdirectly.no replacement in the API; this was only used by MyPet itself, which now keeps its own copy. UseHttpClientdirectly.
-
Deprecated ConstructorsConstructorDescriptionuse
PersistedPet.builder(MyPetPlayer)or the canonical constructor.nothing in MyPet calls this and it silently forcesPetLevelEvent.isQuiet()totrue; usePetLevelEvent(Pet, int, boolean)and state the quiet flag