Class Equipment

java.lang.Object
com.valhalla.sdk.api.methods.Equipment

public final class Equipment extends Object
Queries and native actions for the local player's worn equipment.

Snapshots require the Capabilities.EQUIPMENT capability. Slot actions fail closed without Capabilities.EQUIPMENT_SLOT_ACTIONS. A successful action result confirms dispatch only; re-query equipment to confirm removal.

  • Method Details

    • capacity

      public static int capacity()
      Returns wearable slot capacity.
      Returns:
      number of defined wearable equipment slots
    • all

      public static List<Item> all()
      Returns currently worn items.
      Returns:
      immutable equipment snapshots from the current native scene snapshot
    • open

      public static boolean open()
      Opens the equipment tab.
      Returns:
      true when the equipment tab action was accepted
    • interact

      public static boolean interact(EquipmentSlot slot)
      Dispatches the default action for a worn slot.
      Parameters:
      slot - equipment slot
      Returns:
      true when the runtime accepted the action
    • remove

      public static boolean remove(EquipmentSlot slot)
      Removes the currently worn item in a slot using its default action.
      Parameters:
      slot - equipment slot
      Returns:
      true when the action was accepted; verify equipment for completion