Package com.valhalla.sdk.api.methods
Class Prayers
java.lang.Object
com.valhalla.sdk.api.methods.Prayers
Safe Prayer-tab discovery and exact current prayer toggles through live widgets.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanRequests activation of one prayer.static booleandeactivate(String prayerName) Requests deactivation of one prayer.static Optional<WidgetSnapshot> Finds one uniquely visible prayer by display name.static booleanReturns whether one visible prayer's current exact operation proves it active.static booleanisOpen()Returns whether a coherent multi-control prayer panel is currently visible.static booleanReturns whether the active adapter supports safe prayer toggles.static booleanopen()Opens the Prayer tab when it is not currently proven visible.static booleanRequests whichever exact current prayer toggle operation is visible.static List<WidgetSnapshot> Returns visible current prayer controls from the one confirmed prayer panel.
-
Field Details
-
ACTIVATE_ACTION
Exact current operation for an inactive prayer.- See Also:
-
DEACTIVATE_ACTION
Exact current operation for an active prayer.- See Also:
-
-
Method Details
-
isSupported
public static boolean isSupported()Returns whether the active adapter supports safe prayer toggles. Scripts still needgame:interact-widgetin their manifest. -
isOpen
public static boolean isOpen()Returns whether a coherent multi-control prayer panel is currently visible. A lone Quick-prayers Activate widget is not sufficient. -
open
public static boolean open()Opens the Prayer tab when it is not currently proven visible.- Returns:
- true when the panel is already open or the tab request was accepted
-
visiblePrayers
Returns visible current prayer controls from the one confirmed prayer panel. -
find
Finds one uniquely visible prayer by display name. -
isActive
Returns whether one visible prayer's current exact operation proves it active. -
activate
Requests activation of one prayer. Returns true without dispatch when the current exact action already proves the prayer active. -
deactivate
Requests deactivation of one prayer. Returns true without dispatch when the current exact action already proves the prayer inactive. -
toggle
Requests whichever exact current prayer toggle operation is visible.
-