Class Prayers


  • public class Prayers
    extends java.lang.Object
    • Method Detail

      • isActive

        public static boolean isActive​(Prayer prayer)
        Checks if the provided prayer is active
        Parameters:
        prayer - The prayer to check
        Returns:
        true if prayer is active
      • openTab

        public static boolean openTab()
        Opens the prayer Tab
        Returns:
        if the tab opened
      • isOpen

        public static boolean isOpen()
        Returns:
        if prayer tab is open
      • isQuickPrayerActive

        public static boolean isQuickPrayerActive()
        Returns:
        if quickprayer is active
      • getActive

        public static Prayer[] getActive()
        Returns:
        the active prayers
      • getWidgetChildQuickPrayer

        public static WidgetChild getWidgetChildQuickPrayer​(Prayer prayer)
      • toggleQuickPrayer

        public static boolean toggleQuickPrayer​(boolean active)
        Toggles quick prayer
        Parameters:
        active - true or false
        Returns:
        true or false
      • getQuickPrayers

        public static java.util.List<Prayer> getQuickPrayers()
        Returns a list of all selected quick prayers
        Returns:
        all selected Prayer's in the quick prayer menu
      • setupQuickPrayers

        public static boolean setupQuickPrayers​(Prayer... prayers)
        This will set up your quick prayers to enable only the given Prayer's, disabling any others currently enabled.
        Parameters:
        prayers - One or more Prayer
        Returns:
        true if successfully setup, otherwise false
      • toggle

        public static boolean toggle​(boolean active,
                                     Prayer prayer)
        Toggles prayer
        Parameters:
        active - true or false
        prayer - The prayer
        Returns:
        true or false
      • flick

        public static boolean flick​(Prayer prayer,
                                    int delay)
        Flicks prayer
        Parameters:
        prayer - The prayer
        delay - time to delay (ms)
        Returns:
        true or false
      • isPrayerFilteringEnabled

        public static boolean isPrayerFilteringEnabled()
        This is used to check if prayer filtering is enabled. If prayer filtering is enabled, it does not necessarily mean something is currently being filtered, just that the ability to do so will be available via the "Filter" button in the Prayer tab.
        Returns:
        true if prayer filtering is enabled, false otherwise
      • setPrayerFilteringEnabled

        public static boolean setPrayerFilteringEnabled​(boolean enabled)
        Either enables or disables the prayer filtering options in the Prayer tab
        Parameters:
        enabled - if prayer filtering should be enabled
        Returns:
        true if it's already correctly set or if it's successfully changed