Package de.Keyle.MyPet.api.util
package de.Keyle.MyPet.api.util
Shared helpers used across the API.
ItemStrings round-trips a full ItemStack, meta
included, to and from a single paste-safe line, which is how items are stored in skilltree
JSON. ConfigItem is a configured item matched against what a player is holding, and
AnnotationLookup resolves the name an annotation carries.
NBTStorage marks a type that can save and load itself as NBT,
Scheduler marks one with recurring work to run, and ErrorReporter with
ErrorUtil centralize error reporting.
-
ClassDescriptionResolve an annotation-carried name (e.g.A configured item — typically loaded from config (e.g.,
RIDE_ITEM,CONTROL_ITEM,GROW_UP_ITEM) and compared against items the player is holding.How an item's durability is taken into account when matching.Receives the errors MyPet catches, so they can be reported somewhere useful.Utility class for centralized error reporting.Round-trips a fullItemStack(including all meta) to and from a paste-safe one-line string, for storing items in skilltree JSON.Something that can write itself to NBT and read itself back.The single answer to "may this pet target or damage that entity?".Something with recurring work MyPet should run on a schedule.Decides which of a player's active pets a command with no pet named acts on.Helpers for item strings that travel through YAML as a single-quoted scalar.