Package com.valhalla.sdk.api.methods
Class Equipment
java.lang.Object
com.valhalla.sdk.api.methods.Equipment
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 Summary
Modifier and TypeMethodDescriptionall()Returns currently worn items.static intcapacity()Returns wearable slot capacity.static booleaninteract(EquipmentSlot slot) Dispatches the default action for a worn slot.static booleanopen()Opens the equipment tab.static booleanremove(EquipmentSlot slot) Removes the currently worn item in a slot using its default action.
-
Method Details
-
capacity
public static int capacity()Returns wearable slot capacity.- Returns:
- number of defined wearable equipment slots
-
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:
truewhen the equipment tab action was accepted
-
interact
Dispatches the default action for a worn slot.- Parameters:
slot- equipment slot- Returns:
truewhen the runtime accepted the action
-
remove
Removes the currently worn item in a slot using its default action.- Parameters:
slot- equipment slot- Returns:
truewhen the action was accepted; verify equipment for completion
-