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 boolean
flick(Prayer prayer, int delay)
Flicks prayerstatic Prayer[]
getActive()
static java.util.List<Prayer>
getQuickPrayers()
Returns a list of all selected quick prayersstatic WidgetChild
getWidgetChild(Prayer prayer)
static WidgetChild
getWidgetChildQuickPrayer(Prayer prayer)
static boolean
isActive(Prayer prayer)
Checks if the provided prayer is activestatic boolean
isOpen()
static boolean
isQuickPrayerActive()
static boolean
openTab()
Opens the prayer Tabstatic boolean
setupQuickPrayers(Prayer... prayers)
This will set up your quick prayers to enable only the givenPrayer
's, disabling any others currently enabled.static boolean
toggle(boolean active, Prayer prayer)
Toggles prayerstatic boolean
toggleQuickPrayer(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- 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
-
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
-
-