Package dev.twilite.game.facade
Class Prayers
java.lang.Object
dev.twilite.game.facade.Prayers
Prayerbook helpers backed by live prayer varps and prayerbook components.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classQuick-prayer state and setup helpers. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidActivates the supplied prayers.active()Returns every currently active prayer.static booleanReturns whether all supplied prayers are active.static booleanactive(Collection<Prayer> prayers) Returns whether all supplied prayers are active.all()Returns every modern prayer.static voiddeactivate(Prayer... prayers) Deactivates the supplied prayers.static voidDeactivates active prayers, then activates the requested prayers in the same tick.static voidflick(Collection<Prayer> prayers) Deactivates active prayers, then activates the requested prayers in the same tick.static Prayeroverhead()Returns the active overhead prayer, ornullwhen none is active.static intpercent()Returns current Prayer points as a percentage of the base level.static intpoints()Returns the current Prayer points.static voidActivates any supplied prayers that are not already active.static voidselect(Collection<Prayer> prayers) Activates any supplied prayers that are not already active.static voidToggles a prayer to the requested state.static intReturns the player's base Prayer level.static booleanReturns whether the supplied prayer is unlocked for the local player.
-
Constructor Details
-
Prayers
public Prayers()
-
-
Method Details
-
all
Returns every modern prayer. -
active
Returns every currently active prayer. -
active
Returns whether all supplied prayers are active. -
active
Returns whether all supplied prayers are active. -
overhead
Returns the active overhead prayer, ornullwhen none is active. -
unlocked
Returns whether the supplied prayer is unlocked for the local player. -
points
public static int points()Returns the current Prayer points. -
totalPoints
public static int totalPoints()Returns the player's base Prayer level. -
percent
public static int percent()Returns current Prayer points as a percentage of the base level. -
toggle
Toggles a prayer to the requested state. -
activate
Activates the supplied prayers. -
deactivate
Deactivates the supplied prayers. -
select
Activates any supplied prayers that are not already active. -
select
Activates any supplied prayers that are not already active. -
flick
Deactivates active prayers, then activates the requested prayers in the same tick. -
flick
Deactivates active prayers, then activates the requested prayers in the same tick.
-