Enum Spellbook

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Spellbook>

    public enum Spellbook
    extends java.lang.Enum<Spellbook>
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ANCIENT
      Ancient Magicks Spellbook - Unlocked after Desert Treasure I quest
      ARCEUUS
      Arceuus Spellbook - No quest requirement, accessible to all players
      LUNAR
      Lunar Spellbook - Unlocked after Lunar Diplomacy quest
      MODERN
      Standard/Modern Spellbook - Default spellbook available to all players
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Spellbook fromValue​(int value)
      Get the spellbook from its value
      static Spellbook valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Spellbook[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • MODERN

        public static final Spellbook MODERN
        Standard/Modern Spellbook - Default spellbook available to all players
      • ANCIENT

        public static final Spellbook ANCIENT
        Ancient Magicks Spellbook - Unlocked after Desert Treasure I quest
      • LUNAR

        public static final Spellbook LUNAR
        Lunar Spellbook - Unlocked after Lunar Diplomacy quest
      • ARCEUUS

        public static final Spellbook ARCEUUS
        Arceuus Spellbook - No quest requirement, accessible to all players
    • Method Detail

      • values

        public static Spellbook[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Spellbook c : Spellbook.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Spellbook valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • fromValue

        public static Spellbook fromValue​(int value)
        Get the spellbook from its value
        Parameters:
        value - The numeric value of the spellbook
        Returns:
        The corresponding Rs2Spellbook enum