Package com.valhalla.sdk
Class Capabilities
java.lang.Object
com.valhalla.sdk.Capabilities
Runtime feature names returned by
Client.getCapabilities().
Capabilities describe what the active OSRS adapter can do. They are
deliberately separate from manifest Permissions: a script must
declare the appropriate permission and should also verify the live
capability before depending on version-sensitive native state.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringReads and operates the bank interface.static final StringChanges the native camera orientation.static final StringReads combat state used by the combat facade.static final StringInvokes actions on native interface components.static final StringReads the live equipment container.static final StringInvokes the default action for an equipment slot.static final StringEnumerates ground items in the loaded scene.static final StringReads whether the player is inside an instanced region.static final StringReads the live inventory container.static final StringInvokes item actions using an item identifier and slot.static final StringInvokes the default action for an inventory slot.static final StringReads whether the current account has members access.static final StringDispatches native tile-walking actions.static final StringEnumerates NPCs in the loaded scene.static final StringRetains objects observed by the adapter across short scene changes.static final StringReads the local player's current action-sequence animation.static final StringEnumerates visible players, including the local player.static final StringReads the remaining charges of a quetzal whistle.static final StringChanges the run-enabled state.static final StringReads run energy and run-enabled state.static final StringEnumerates typed scene objects from the live renderer.static final StringEnumerates semantic widgets decoded by the active adapter.static final StringControls login-session operations such as logout.static final StringReads current levels, real levels, and experience.static final StringResolves spell interface components.static final StringOpens top-level game tabs.static final StringReads client varps used by higher-level APIs.static final StringReads the current world number. -
Method Summary
-
Field Details
-
PLAYER_ENUMERATION
Enumerates visible players, including the local player.- See Also:
-
PLAYER_ANIMATION
Reads the local player's current action-sequence animation.- See Also:
-
NPC_ENUMERATION
Enumerates NPCs in the loaded scene.- See Also:
-
SCENE_OBJECT_ENUMERATION
Enumerates typed scene objects from the live renderer.- See Also:
-
OBSERVED_OBJECT_CACHE
Retains objects observed by the adapter across short scene changes.- See Also:
-
GROUND_ITEM_ENUMERATION
Enumerates ground items in the loaded scene.- See Also:
-
SKILLS
Reads current levels, real levels, and experience.- See Also:
-
INVENTORY
Reads the live inventory container.- See Also:
-
EQUIPMENT
Reads the live equipment container.- See Also:
-
INVENTORY_ITEM_ACTIONS
Invokes item actions using an item identifier and slot.- See Also:
-
NATIVE_WALKING
Dispatches native tile-walking actions.- See Also:
-
SESSION_CONTROL
Controls login-session operations such as logout.- See Also:
-
WORLD_STATE
Reads the current world number.- See Also:
-
MEMBERSHIP_STATE
Reads whether the current account has members access.- See Also:
-
RUN_STATE
Reads run energy and run-enabled state.- See Also:
-
RUN_CONTROL
Changes the run-enabled state.- See Also:
-
VARP_STATE
Reads client varps used by higher-level APIs.- See Also:
-
COMBAT_STATE
Reads combat state used by the combat facade.- See Also:
-
INSTANCE_STATE
Reads whether the player is inside an instanced region.- See Also:
-
QUETZAL_WHISTLE_CHARGES
Reads the remaining charges of a quetzal whistle.- See Also:
-
TAB_CONTROL
Opens top-level game tabs.- See Also:
-
INVENTORY_SLOT_ACTIONS
Invokes the default action for an inventory slot.- See Also:
-
EQUIPMENT_SLOT_ACTIONS
Invokes the default action for an equipment slot.- See Also:
-
COMPONENT_ACTIONS
Invokes actions on native interface components.- See Also:
-
SEMANTIC_WIDGETS
Enumerates semantic widgets decoded by the active adapter.- See Also:
-
SPELL_COMPONENTS
Resolves spell interface components.- See Also:
-
CAMERA_CONTROL
Changes the native camera orientation.- See Also:
-
BANK_ACTIONS
Reads and operates the bank interface.- See Also:
-
-
Method Details
-
all
Returns every capability name known to this SDK release.- Returns:
- an immutable set of capability names
-