Enum AutomationStage

java.lang.Object
java.lang.Enum<AutomationStage>
privbot.task.AutomationStage
All Implemented Interfaces:
Serializable, Comparable<AutomationStage>, java.lang.constant.Constable

public enum AutomationStage extends Enum<AutomationStage>
Ordered automation stages for StagedTaskRunner.

Stages are evaluated in declaration order. The first stage that selects an executable node wins for that tick; later stages are skipped.

Plugins map their behaviors to stages so unrelated concerns do not share one global priority space. Keep bands aligned with TaskPriorityBands when migrating from TaskNodeRunner.

  • Enum Constant Details

    • RECOVERY

      public static final AutomationStage RECOVERY
      Death recovery, supply abort, stuck recovery (typically 240–250).
    • HAZARD_PRIMARY

      public static final AutomationStage HAZARD_PRIMARY
      First hazard tier — e.g. poison spike, tornado (typically ~200).
    • MOVEMENT

      public static final AutomationStage MOVEMENT
      Positioning / barrier / off-anchor (e.g. CoX ~150).
    • HAZARD_SECONDARY

      public static final AutomationStage HAZARD_SECONDARY
      Secondary hazards — fire, acid, crystal, floor, water (typically 80–95).
    • COMBAT_HIGH

      public static final AutomationStage COMBAT_HIGH
      High-priority combat — prayer switch, siphon, Olm heal/special/mage/melee/head (typically 55–150 depending on plugin).
    • RAID_FLOW

      public static final AutomationStage RAID_FLOW
      Raid flow before low combat — e.g. raid entry, obelisk phase (typically 120–125).
    • COMBAT_LOW

      public static final AutomationStage COMBAT_LOW
      Lower combat — spec, gear, offensive prayer, core, boss attack (typically 60–100).
    • POST_RAID

      public static final AutomationStage POST_RAID
      Post-raid loot / leave (typically 25–40).
    • PREP

      public static final AutomationStage PREP
      Supplies / preset (e.g. 30–35).
    • LOBBY

      public static final AutomationStage LOBBY
      Lobby / rewards / party (lowest band, e.g. 21–25).
  • Method Details

    • values

      public static AutomationStage[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AutomationStage valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null