Class Capabilities

java.lang.Object
com.valhalla.sdk.Capabilities

public final class Capabilities extends Object
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 Details

    • PLAYER_ENUMERATION

      public static final String PLAYER_ENUMERATION
      Enumerates visible players, including the local player.
      See Also:
    • PLAYER_ANIMATION

      public static final String PLAYER_ANIMATION
      Reads the local player's current action-sequence animation.
      See Also:
    • NPC_ENUMERATION

      public static final String NPC_ENUMERATION
      Enumerates NPCs in the loaded scene.
      See Also:
    • SCENE_OBJECT_ENUMERATION

      public static final String SCENE_OBJECT_ENUMERATION
      Enumerates typed scene objects from the live renderer.
      See Also:
    • SCENE_OBJECT_ANIMATION

      public static final String SCENE_OBJECT_ANIMATION
      Reads the current animation (sequence id) of dynamic scene objects.
      See Also:
    • OBSERVED_OBJECT_CACHE

      public static final String OBSERVED_OBJECT_CACHE
      Retains objects observed by the adapter across short scene changes.
      See Also:
    • GROUND_ITEM_ENUMERATION

      public static final String GROUND_ITEM_ENUMERATION
      Enumerates ground items in the loaded scene.
      See Also:
    • SKILLS

      public static final String SKILLS
      Reads current levels, real levels, and experience.
      See Also:
    • INVENTORY

      public static final String INVENTORY
      Reads the live inventory container.
      See Also:
    • EQUIPMENT

      public static final String EQUIPMENT
      Reads the live equipment container.
      See Also:
    • INVENTORY_ITEM_ACTIONS

      public static final String INVENTORY_ITEM_ACTIONS
      Invokes item actions using an item identifier and slot.
      See Also:
    • INVENTORY_ITEM_ON_ITEM_ACTIONS

      public static final String INVENTORY_ITEM_ON_ITEM_ACTIONS
      Atomically uses one identity-validated inventory item on another.
      See Also:
    • INVENTORY_ITEM_ON_OBJECT_ACTIONS

      public static final String INVENTORY_ITEM_ON_OBJECT_ACTIONS
      Atomically uses one identity-validated inventory item on a scene object.
      See Also:
    • NATIVE_WALKING

      public static final String NATIVE_WALKING
      Dispatches native tile-walking actions.
      See Also:
    • SESSION_CONTROL

      public static final String SESSION_CONTROL
      Controls login-session operations such as logout.
      See Also:
    • WORLD_STATE

      public static final String WORLD_STATE
      Reads the current world number.
      See Also:
    • MEMBERSHIP_STATE

      public static final String MEMBERSHIP_STATE
      Reads whether the current account has members access.
      See Also:
    • RUN_STATE

      public static final String RUN_STATE
      Reads run energy and run-enabled state.
      See Also:
    • RUN_CONTROL

      public static final String RUN_CONTROL
      Changes the run-enabled state.
      See Also:
    • VARP_STATE

      public static final String VARP_STATE
      Reads client varps used by higher-level APIs.
      See Also:
    • COMBAT_STATE

      public static final String COMBAT_STATE
      Reads combat state used by the combat facade.
      See Also:
    • INSTANCE_STATE

      public static final String INSTANCE_STATE
      Reads whether the player is inside an instanced region.
      See Also:
    • QUETZAL_WHISTLE_CHARGES

      public static final String QUETZAL_WHISTLE_CHARGES
      Reads the remaining charges of a quetzal whistle.
      See Also:
    • TAB_CONTROL

      public static final String TAB_CONTROL
      Opens top-level game tabs.
      See Also:
    • INVENTORY_SLOT_ACTIONS

      public static final String INVENTORY_SLOT_ACTIONS
      Invokes the default action for an inventory slot.
      See Also:
    • EQUIPMENT_SLOT_ACTIONS

      public static final String EQUIPMENT_SLOT_ACTIONS
      Invokes the default action for an equipment slot.
      See Also:
    • COMPONENT_ACTIONS

      public static final String COMPONENT_ACTIONS
      Invokes actions on native interface components.
      See Also:
    • SEMANTIC_WIDGETS

      public static final String SEMANTIC_WIDGETS
      Legacy discovery capability retained for existing widget consumers.
      See Also:
    • LIVE_WIDGET_BRIDGE

      public static final String LIVE_WIDGET_BRIDGE
      Traverses all visible, mounted widget roots under a revision-pinned adapter.
      See Also:
    • LIVE_WIDGET_ACTIONS

      public static final String LIVE_WIDGET_ACTIONS
      Revalidates one exact live widget action on the client owner thread.
      See Also:
    • LIVE_SPELL_NPC_ACTIONS

      public static final String LIVE_SPELL_NPC_ACTIONS
      Atomically applies one current target spell to one identity-validated NPC.
      See Also:
    • SPELL_COMPONENTS

      public static final String SPELL_COMPONENTS
      Resolves spell interface components.
      See Also:
    • CAMERA_CONTROL

      public static final String CAMERA_CONTROL
      Changes the native camera orientation.
      See Also:
    • SCENE_HEIGHT

      public static final String SCENE_HEIGHT
      Reads interpolated local-player terrain height from the native scene.
      See Also:
    • BANK_STATE

      public static final String BANK_STATE
      Reads the live bank container and interface state.
      See Also:
    • BANK_ACTIONS

      public static final String BANK_ACTIONS
      Operates the bank interface.
      See Also:
    • BANK_PIN_STATE

      public static final String BANK_PIN_STATE
      Detects a complete revision-validated randomized bank-PIN keypad.
      See Also:
    • BANK_PIN_ACTIONS

      public static final String BANK_PIN_ACTIONS
      Submits one digit through a revision-validated bank-PIN keypad.
      See Also:
  • Method Details

    • all

      public static Set<String> all()
      Returns every capability name known to this SDK release.
      Returns:
      an immutable set of capability names