Class Magic.CastResult

java.lang.Object
privbot.hooks.Magic.CastResult
Enclosing class:
Magic

public static final class Magic.CastResult extends Object
A cast's outcome plus, for REFUSED, the gate that held it (the outcome's gate) and, for UNREACHABLE, the name of the reason the action could not be reached. Null otherwise.
  • Constructor Details

    • CastResult

      public CastResult(Magic.CastOutcome outcome, String gate)
      Parameters:
      outcome - the outcome
      gate - the refusing gate or unreachable reason, or null
  • Method Details

    • outcome

      public Magic.CastOutcome outcome()
      Returns:
      the outcome
    • gate

      public String gate()
      Returns:
      the refusing gate or unreachable reason, or null
    • sent

      public boolean sent()
      The legacy boolean: the target click went out, or was queued behind the select.
    • toString

      public String toString()
      Overrides:
      toString in class Object