public class Prayer extends API
bank, bot, camera, chatbox, client, colorPicker, combat, configs, depositBox, dialogues, diaries, display, doorHandler, equipment, experienceTracker, favour, grandExchange, graphicObjects, groundItems, hintArrow, inventory, keyboard, logger, logoutTab, magic, map, menu, mouse, npcs, objects, players, prayer, projectiles, quests, settings, skills, store, tabs, trade, walking, widgets, worlds
Constructor and Description |
---|
Prayer() |
Modifier and Type | Method and Description |
---|---|
boolean |
deactivateAll()
Deactivates all prayers.
|
RS2Widget |
getWidgetForPrayer(PrayerButton prayer)
Gets the widget for a specific
PrayerButton |
boolean |
hasLevelFor(PrayerButton prayer)
Returns whether you have the required level to use the specified prayer.
|
void |
initializeModule() |
boolean |
isActivated(PrayerButton prayer)
Returns true if designated prayer is turned on.
|
boolean |
isQuickPrayerActive()
Checks to see if your quick prayer is active.
|
boolean |
open()
Opens the prayer tab.
|
boolean |
set(PrayerButton prayer,
boolean activate)
Activates or deactivates the specified prayer if you have the required level.
|
boolean |
setQuickPrayer(boolean activate)
Activates or deactivates the quick prayer.
|
exchangeContext, execute, getBank, getBot, getCamera, getChatbox, getClient, getColorPicker, getCombat, getConfigs, getDepositBox, getDialogues, getDiaries, getDisplay, getDoorHandler, getEquipment, getExperienceTracker, getFavour, getGrandExchange, getGraphicObjects, getGroundItems, getHintArrow, getInventory, getKeyboard, getLogoutTab, getMagic, getMap, getMenuAPI, getMouse, getNpcs, getObjects, getPlayers, getPrayer, getProjectiles, getQuests, getSettings, getSkills, getStore, getTabs, getTrade, getWalking, getWidgets, getWorlds, gRandom, gRandom, gRandom, initializeContext, log, log, myPlayer, myPosition, random, random, sleep, stripFormatting, warn
public RS2Widget getWidgetForPrayer(PrayerButton prayer)
PrayerButton
prayer
- The prayer to get the widget forPrayerButton
public boolean set(PrayerButton prayer, boolean activate)
prayer
- The prayer to activate or deactivate.activate
- True to activate; False to deactivate.public boolean setQuickPrayer(boolean activate)
activate
- True to activate; False to deactivate.public boolean deactivateAll()
public boolean isActivated(PrayerButton prayer)
prayer
- The prayer.public boolean hasLevelFor(PrayerButton prayer)
prayer
- The prayer to check the level requirement for.public boolean open()
public boolean isQuickPrayerActive()
public void initializeModule()
initializeModule
in class API