Enum Prayer

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

    public enum Prayer
    extends java.lang.Enum<Prayer>
    An enumeration of different prayer spells.
    • Enum Constant Detail

      • THICK_SKIN

        public static final Prayer THICK_SKIN
        Thick Skin (Level 1, Defence).
      • BURST_OF_STRENGTH

        public static final Prayer BURST_OF_STRENGTH
        Burst of Strength (Level 4, Strength).
      • CLARITY_OF_THOUGHT

        public static final Prayer CLARITY_OF_THOUGHT
        Clarity of Thought (Level 7, Attack).
      • SHARP_EYE

        public static final Prayer SHARP_EYE
        Sharp Eye (Level 8, Ranging).
      • MYSTIC_WILL

        public static final Prayer MYSTIC_WILL
        Mystic Will (Level 9, Magic).
      • ROCK_SKIN

        public static final Prayer ROCK_SKIN
        Rock Skin (Level 10, Defence).
      • SUPERHUMAN_STRENGTH

        public static final Prayer SUPERHUMAN_STRENGTH
        Superhuman Strength (Level 13, Strength).
      • IMPROVED_REFLEXES

        public static final Prayer IMPROVED_REFLEXES
        Improved Reflexes (Level 16, Attack).
      • RAPID_RESTORE

        public static final Prayer RAPID_RESTORE
        Rapid Restore (Level 19, Stats).
      • RAPID_HEAL

        public static final Prayer RAPID_HEAL
        Rapid Heal (Level 22, Hitpoints).
      • PROTECT_ITEM

        public static final Prayer PROTECT_ITEM
        Protect Item (Level 25).
      • HAWK_EYE

        public static final Prayer HAWK_EYE
        Hawk Eye (Level 26, Ranging).
      • MYSTIC_LORE

        public static final Prayer MYSTIC_LORE
        Mystic Lore (Level 27, Magic).
      • STEEL_SKIN

        public static final Prayer STEEL_SKIN
        Steel Skin (Level 28, Defence).
      • ULTIMATE_STRENGTH

        public static final Prayer ULTIMATE_STRENGTH
        Ultimate Strength (Level 31, Strength).
      • INCREDIBLE_REFLEXES

        public static final Prayer INCREDIBLE_REFLEXES
        Incredible Reflexes (Level 34, Attack).
      • PROTECT_FROM_MAGIC

        public static final Prayer PROTECT_FROM_MAGIC
        Protect from Magic (Level 37).
      • PROTECT_FROM_MISSILES

        public static final Prayer PROTECT_FROM_MISSILES
        Protect from Missiles (Level 40).
      • PROTECT_FROM_MELEE

        public static final Prayer PROTECT_FROM_MELEE
        Protect from Melee (Level 43).
      • EAGLE_EYE

        public static final Prayer EAGLE_EYE
        Eagle Eye (Level 44, Ranging).
      • MYSTIC_MIGHT

        public static final Prayer MYSTIC_MIGHT
        Mystic Might (Level 45, Magic).
      • RETRIBUTION

        public static final Prayer RETRIBUTION
        Retribution (Level 46).
      • REDEMPTION

        public static final Prayer REDEMPTION
        Redemption (Level 49).
      • SMITE

        public static final Prayer SMITE
        Smite (Level 52).
      • CHIVALRY

        public static final Prayer CHIVALRY
        Chivalry (Level 60, Defence/Strength/Attack).
      • PIETY

        public static final Prayer PIETY
        Piety (Level 70, Defence/Strength/Attack).
      • PRESERVE

        public static final Prayer PRESERVE
        Preserve (Level 55).
      • RIGOUR

        public static final Prayer RIGOUR
        Rigour (Level 74, Ranging/Damage/Defence).
      • AUGURY

        public static final Prayer AUGURY
        Augury (Level 77, Magic/Magic Def./Defence).
    • Method Detail

      • values

        public static Prayer[] 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 (Prayer c : Prayer.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Prayer 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
      • getVarbit

        public Varbits getVarbit()
        Gets the varbit that stores whether the prayer is active or not.
        Returns:
        the prayer active varbit
      • getDrainRate

        public double getDrainRate()
        Gets the prayer drain rate (measured in pray points/minute)
        Returns:
        the prayer drain rate