Enum Magic.SpellbookTab

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

public static enum Magic.SpellbookTab extends Enum<Magic.SpellbookTab>
The magic tab as the client holds it. OPEN means the tab is SELECTED, not that the resizable side panel is shown: that cannot be read, and selecting a spell does not need it.
  • Enum Constant Details

    • OPEN

      public static final Magic.SpellbookTab OPEN
      selectedTab == TAB_MAGIC: never click the tab again (the client would toggle the panel).
    • OTHER_TAB

      public static final Magic.SpellbookTab OTHER_TAB
      Another tab is selected; one TAB_SELECT opens the book.
    • OVERLAY

      public static final Magic.SpellbookTab OVERLAY
      An overlay replaces the tab area, so the book is not drawn whatever tab is selected.
    • UNAVAILABLE

      public static final Magic.SpellbookTab UNAVAILABLE
      The magic tab has no root (tabRoots[TAB_MAGIC] == -1): there is no book to open.
    • UNKNOWN

      public static final Magic.SpellbookTab UNKNOWN
      Not readable on this server or right now. Callers click the tab and wait.
  • Method Details

    • values

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