Enum Magic.CastOutcome

java.lang.Object
java.lang.Enum<Magic.CastOutcome>
privbot.hooks.Magic.CastOutcome
All Implemented Interfaces:
Serializable, Comparable<Magic.CastOutcome>, java.lang.constant.Constable
Enclosing class:
Magic

public static enum Magic.CastOutcome extends Enum<Magic.CastOutcome>
What happened to a cast's target click. Only DISPATCHED and POSTED_UNCONFIRMED count as sent.
  • Enum Constant Details

    • DISPATCHED

      public static final Magic.CastOutcome DISPATCHED
      The invoker sent the target click (SENT or PENDING).
    • POSTED_UNCONFIRMED

      public static final Magic.CastOutcome POSTED_UNCONFIRMED
      The target click was queued but its outcome could not be waited for (EDT, client thread, timeout).
    • REFUSED

      public static final Magic.CastOutcome REFUSED
      A gate held the target click; Magic.CastResult.gate() names it.
    • FAILED

      public static final Magic.CastOutcome FAILED
      The invoker attempted the target click and it errored.
    • UNREACHABLE

      public static final Magic.CastOutcome UNREACHABLE
      PrivBot could not perform the click; Magic.CastResult.gate() carries the reason.
    • NO_TARGET_ID

      public static final Magic.CastOutcome NO_TARGET_ID
      The target cannot be addressed (no player, no menu identifier). Nothing was sent.
    • SELECT_NOT_APPLIED

      public static final Magic.CastOutcome SELECT_NOT_APPLIED
      The spell click went out but the client never took the selection. No target was sent.
    • UNKNOWN_SPELL

      public static final Magic.CastOutcome UNKNOWN_SPELL
      No spellbook entry of that name.
    • SPELLBOOK_UNAVAILABLE

      public static final Magic.CastOutcome SPELLBOOK_UNAVAILABLE
      The book could not be shown (overlay, no magic tab, or the tab did not open in time).
    • INTERRUPTED

      public static final Magic.CastOutcome INTERRUPTED
      The caller was interrupted (Stop) before the target click.
  • Method Details

    • values

      public static Magic.CastOutcome[] 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 Magic.CastOutcome 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