Package rsb.methods
Class Prayer
java.lang.Object
rsb.methods.MethodProvider
rsb.methods.Prayer
Prayer related operations.
- Author:
- GigiaJ
-
Field Summary
Fields inherited from class rsb.methods.MethodProvider
methods -
Method Summary
Modifier and TypeMethodDescriptionbooleanactivatePrayer(GlobalWidgetId.Prayer prayer, boolean activate) Activates/deactivates a prayer via interfaces.booleanactivateQuickPrayer(boolean activate) Activates/deactivates quick prayers via interfaces.intGets the remaining prayer points.intGets the percentage of prayer points left based on the players current prayer level.RSWidget[]Returns an array of RSWidgets representing the prayers that are selected.booleanisPrayerOn(GlobalWidgetId.Prayer prayer) Returns true if designated prayer is turned on.booleanReturns true if the quick prayer interface has been used to activate prayers.booleansetQuickPrayers(boolean unsetPrevious, GlobalWidgetId.Prayer... prayers) Sets up the quick prayers for the user
-
Method Details
-
isPrayerOn
Returns true if designated prayer is turned on.- Parameters:
prayer- The prayer to check.- Returns:
trueif enabled; otherwisefalse.
-
isQuickPrayerOn
public boolean isQuickPrayerOn()Returns true if the quick prayer interface has been used to activate prayers.- Returns:
trueif quick prayer is on; otherwisefalse.
-
activatePrayer
Activates/deactivates a prayer via interfaces.- Parameters:
prayer- The prayer to activate.activate-trueto activate;falseto deactivate.- Returns:
trueif the interface was clicked; otherwisefalse.
-
activateQuickPrayer
public boolean activateQuickPrayer(boolean activate) Activates/deactivates quick prayers via interfaces.- Parameters:
activate-trueto activate;falseto deactivate.- Returns:
trueif the interface was clicked; otherwisefalse.
-
setQuickPrayers
Sets up the quick prayers for the user- Parameters:
unsetPrevious- whether the previous quick prayers should be unsetprayers- the prayers to activate with quick prayers- Returns:
Trueunless unable to access the interface
-
getSelectedPrayers
Returns an array of RSWidgets representing the prayers that are selected.- Returns:
- An
RSWidgetarray containing all the components that represent selected prayers.
-
getPrayerLeft
public int getPrayerLeft()Gets the remaining prayer points.- Returns:
- The number of prayer points left.
-
getPrayerPercentLeft
public int getPrayerPercentLeft()Gets the percentage of prayer points left based on the players current prayer level.- Returns:
- The percentage of prayer points left.
-