Enum Prayer.Book

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

public static enum Prayer.Book extends Enum<Prayer.Book>
Which prayer book the prayer tab has mounted, as Prayer.mountedBook() reads it.
  • Enum Constant Details

    • NORMAL

      public static final Prayer.Book NORMAL
      The normal prayer book (Protect from Magic, Piety, ...).
    • CURSES

      public static final Prayer.Book CURSES
      The curse book (Deflect Magic, Soul Split, ...), on servers that have one.
    • UNKNOWN

      public static final Prayer.Book UNKNOWN
      Cannot tell: never read it as NORMAL.
  • Method Details

    • values

      public static Prayer.Book[] 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 Prayer.Book 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