Package de.Keyle.MyPet.api.skill
Annotation Interface SkillName
Annotation that declares the canonical name of a
Skill implementation. The
SkillManager uses this annotation (walking superclasses and interfaces)
to register and look up skill classes by name.
Every concrete skill implementation must carry this annotation (directly or
inherited from a parent interface/class). The value() is used as the
key in skilltree JSON files and in the Skills name-based lookup.
Example usage:
@SkillName("Damage")
public class DamageSkill extends AbstractSkill { ... }
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionOptional translation key for the skill's display name.
-
Element Details
-
value
String valueThe unique skill identifier used in skilltree files and registration.- Returns:
- the skill's canonical name, as skilltree JSON refers to it
-
translationNode
String translationNodeOptional translation key for the skill's display name. When empty, the plugin falls back to a default translation lookup based onvalue().- Returns:
- the translation node for the skill's display name, or an empty string
- Default:
""
-