Package de.Keyle.MyPet.api.skill
Class SkillUpgrades
java.lang.Object
de.Keyle.MyPet.api.skill.SkillUpgrades
Self-registering handle pairing a skill's
UpgradeSchema with its
UpgradeParser, declared as a static field on the skill's impl class.-
Method Summary
Modifier and TypeMethodDescriptionstatic <S extends Skill>
SkillUpgradesof(Class<S> skillClass, UpgradeSchema schema, UpgradeParser<S> parser) Declares a skill's upgrade schema and parser.
-
Method Details
-
of
public static <S extends Skill> SkillUpgrades of(Class<S> skillClass, UpgradeSchema schema, UpgradeParser<S> parser) Declares a skill's upgrade schema and parser. Self-registers; picked up bySkillManager.registerSkillwhen the declaring class is initialized.- Type Parameters:
S- the skill these upgrades belong to- Parameters:
skillClass- the skill to register forschema- describes the upgrade JSON for the editorparser- reads an upgrade out of that JSON- Returns:
- the registered handle, for assignment to a
static finalfield
-