Annotation Interface SkillName


@Retention(RUNTIME) @Target(TYPE) @Inherited public @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
    Modifier and Type
    Required Element
    Description
    The unique skill identifier used in skilltree files and registration.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Optional translation key for the skill's display name.
  • Element Details

    • value

      String value
      The unique skill identifier used in skilltree files and registration.
      Returns:
      the skill's canonical name, as skilltree JSON refers to it
    • translationNode

      String translationNode
      Optional translation key for the skill's display name. When empty, the plugin falls back to a default translation lookup based on value().
      Returns:
      the translation node for the skill's display name, or an empty string
      Default:
      ""