Annotation Interface AbilityInfo


@Retention(RUNTIME) public @interface AbilityInfo
Annotation for providing metadata about a custom ability in RareSpawns. Used to specify the ability's name, cooldown, and whether it is single-use. This annotation is retained at runtime for reflection-based access.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The cooldown value for the ability (in seconds).
    The display name of the ability.
    Whether the ability is single-use (true/false).
  • Element Details

    • name

      String name
      The display name of the ability.
      Returns:
      The ability name.
    • cooldown

      String cooldown
      The cooldown value for the ability (in seconds).
      Returns:
      The cooldown value as a string.
    • single

      String single
      Whether the ability is single-use (true/false).
      Returns:
      "true" if single-use, "false" otherwise.