Annotation Interface SoulPowerInfo


@Retention(RUNTIME) public @interface SoulPowerInfo
Annotation for providing metadata about a custom soulpowers in RareSpawns. Used to specify the power's type and cooldown. This annotation is retained at runtime for reflection-based access.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The chance value for the ability (as a percentage).
    The cooldown value for the ability (in seconds).
    Whether the cooldown should apply on failure.
    The type of the power.
  • Element Details

    • type

      String type
      The type of the power.
      Returns:
      The power type.
    • cooldown

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

      String chance
      The chance value for the ability (as a percentage).
      Returns:
      The chance value as a string.
    • failCooldown

      String failCooldown
      Whether the cooldown should apply on failure.
      Returns:
      "true" if cooldown applies on failure, otherwise "false".