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
        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 openTab
      • 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