Enum Prayer

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

    public enum Prayer
    extends java.lang.Enum<Prayer>
    • Enum Constant Detail

      • THICK_SKIN

        public static final Prayer THICK_SKIN
      • BURST_OF_STRENGTH

        public static final Prayer BURST_OF_STRENGTH
      • CLARITY_OF_THOUGHT

        public static final Prayer CLARITY_OF_THOUGHT
      • ROCK_SKIN

        public static final Prayer ROCK_SKIN
      • SUPERHUMAN_STRENGTH

        public static final Prayer SUPERHUMAN_STRENGTH
      • IMPROVED_REFLEXES

        public static final Prayer IMPROVED_REFLEXES
      • RAPID_RESTORE

        public static final Prayer RAPID_RESTORE
      • RAPID_HEAL

        public static final Prayer RAPID_HEAL
      • PROTECT_ITEM

        public static final Prayer PROTECT_ITEM
      • STEEL_SKIN

        public static final Prayer STEEL_SKIN
      • ULTIMATE_STRENGTH

        public static final Prayer ULTIMATE_STRENGTH
      • INCREDIBLE_REFLEXES

        public static final Prayer INCREDIBLE_REFLEXES
      • PROTECT_FROM_MAGIC

        public static final Prayer PROTECT_FROM_MAGIC
      • PROTECT_FROM_MISSILES

        public static final Prayer PROTECT_FROM_MISSILES
      • PROTECT_FROM_MELEE

        public static final Prayer PROTECT_FROM_MELEE
      • RETRIBUTION

        public static final Prayer RETRIBUTION
      • REDEMPTION

        public static final Prayer REDEMPTION
      • SMITE

        public static final Prayer SMITE
      • SHARP_EYE

        public static final Prayer SHARP_EYE
      • MYSTIC_WILL

        public static final Prayer MYSTIC_WILL
      • HAWK_EYE

        public static final Prayer HAWK_EYE
      • MYSTIC_LORE

        public static final Prayer MYSTIC_LORE
      • EAGLE_EYE

        public static final Prayer EAGLE_EYE
      • MYSTIC_MIGHT

        public static final Prayer MYSTIC_MIGHT
      • CHIVALRY

        public static final Prayer CHIVALRY
      • PIETY

        public static final Prayer PIETY
      • RIGOUR

        public static final Prayer RIGOUR
      • AUGURY

        public static final Prayer AUGURY
      • PRESERVE

        public static final Prayer PRESERVE
    • 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
      • getActivePrayers

        public static java.util.List<Prayer> getActivePrayers()
      • getSelectedQuickPrayers

        public static java.util.List<Prayer> getSelectedQuickPrayers()
      • isQuickPraying

        public static boolean isQuickPraying()
      • toggleQuickPrayers

        public static boolean toggleQuickPrayers()
      • setQuickPrayers

        public static boolean setQuickPrayers​(Prayer... prayers)
        Sets the players quick-prayers to be only the ones provided
        Parameters:
        prayers - prayers to set
        Returns:
        if selected quick-prayers are correct and we successfully confirmed
      • setQuickPrayers

        public static boolean setQuickPrayers​(java.util.Collection<Prayer> prayers)
      • isQuickPrayerSetupOpen

        public static boolean isQuickPrayerSetupOpen()
        Determines whether the quick-prayer configuration menu is open or not
        Returns:
        if the quick-prayer config menu is open
      • confirmQuickPrayerSelection

        public static boolean confirmQuickPrayerSelection()
      • getPoints

        public static int getPoints()
      • getMaximumPoints

        public static int getMaximumPoints()
      • isActivatable

        public boolean isActivatable()
      • activate

        public boolean activate()
      • deactivate

        public boolean deactivate()
      • getRequiredLevel

        public int getRequiredLevel()
      • isActivated

        public boolean isActivated()
      • isSelectedAsQuickPrayer

        public boolean isSelectedAsQuickPrayer()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<Prayer>