Package org.dreambot.api.methods.prayer
Class Prayers
- java.lang.Object
-
- org.dreambot.api.methods.prayer.Prayers
-
public class Prayers extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanflick(Prayer prayer, int delay)Flicks prayerstatic Prayer[]getActive()static java.util.List<Prayer>getQuickPrayers()Returns a list of all selected quick prayersstatic WidgetChildgetWidgetChild(Prayer prayer)static WidgetChildgetWidgetChildQuickPrayer(Prayer prayer)static booleanisActive(Prayer prayer)Checks if the provided prayer is activestatic booleanisOpen()static booleanisPrayerFilteringEnabled()This is used to check if prayer filtering is enabled.static booleanisQuickPrayerActive()static booleanopenTab()Opens the prayer Tabstatic booleansetPrayerFilteringEnabled(boolean enabled)Either enables or disables the prayer filtering options in the Prayer tabstatic booleansetupQuickPrayers(Prayer... prayers)This will set up your quick prayers to enable only the givenPrayer's, disabling any others currently enabled.static booleantoggle(boolean active, Prayer prayer)Toggles prayerstatic booleantoggleQuickPrayer(boolean active)Toggles quick prayer
-
-
-
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
-
getWidgetChild
public static WidgetChild getWidgetChild(Prayer prayer)
-
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 givenPrayer's, disabling any others currently enabled.- Parameters:
prayers- One or morePrayer- Returns:
- true if successfully setup, otherwise false
-
toggle
public static boolean toggle(boolean active, Prayer prayer)Toggles prayer- Parameters:
active- true or falseprayer- The prayer- Returns:
- true or false
-
flick
public static boolean flick(Prayer prayer, int delay)
Flicks prayer- Parameters:
prayer- The prayerdelay- 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
-
-