Package de.Keyle.MyPet.api.config


package de.Keyle.MyPet.api.config
Typed configuration keys for pets and for the plugin as a whole.

ConfigKey is a single configuration value with a YAML path, a default and a type. Per-pet keys are declared as public static final fields on the matching PetXxx class, which makes that class the single source of truth for its species' settings; plugin-wide keys live on MyPetGlobal. Both register themselves with ConfigKeyRegistry.

PetConfigLookup resolves a value from a runtime Class reference, which is what the form marker interfaces in de.Keyle.MyPet.api.entity need when they have a pet class but not an instance.

  • Classes
    Class
    Description
    A per-pet config value, declared as a public static final field on the matching PetXxx pet class — the pet class is the single source of truth for its species' config.
    Central registry of every ConfigKey declared as a static field on a pet class.
    Resolves per-pet config values from a runtime Class<? extends Pet> reference — the form marker interfaces (PetFlyingEntity.canFly, PetSwimmingEntity.canSwim, etc.) need.
    A single per-pet boolean flag that applies to every pet type, declared once at the feature that owns it rather than in a central loader.