Enum Class EquipmentSlot

java.lang.Object
java.lang.Enum<EquipmentSlot>
net.storm.api.widgets.EquipmentSlot
All Implemented Interfaces:
Serializable, Comparable<EquipmentSlot>, Constable

public enum EquipmentSlot extends Enum<EquipmentSlot>
Enumeration of all equipment slots in the game.

Each equipment slot represents a position where items can be worn, such as head, body, legs, weapon, etc. This enum provides the slot indices and component IDs needed to interact with equipment both in the equipment interface and the bank worn items panel.

See Also:
  • Enum Constant Details

    • CAPE

      public static final EquipmentSlot CAPE
      Cape or cloak slot.
    • AMULET

      public static final EquipmentSlot AMULET
      Amulet, necklace, or other neck slot item.
    • WEAPON

      public static final EquipmentSlot WEAPON
      Main-hand weapon slot.
    • BODY

      public static final EquipmentSlot BODY
      Body armor, chest piece slot.
    • SHIELD

      public static final EquipmentSlot SHIELD
      Shield or off-hand item slot.
    • LEGS

      public static final EquipmentSlot LEGS
      Leg armor, platelegs, or skirt slot.
    • GLOVES

      public static final EquipmentSlot GLOVES
      Gloves or gauntlets slot.
    • BOOTS

      public static final EquipmentSlot BOOTS
      Boots or footwear slot.
    • RING

      public static final EquipmentSlot RING
      Ring slot.
    • AMMO

      public static final EquipmentSlot AMMO
      Ammunition slot for arrows, bolts, darts, etc.
  • Method Details

    • values

      public static EquipmentSlot[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EquipmentSlot valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getInterfaceAddress

      @Deprecated(forRemoval=true) public InterfaceAddress getInterfaceAddress()
      Deprecated, for removal: This API element is subject to removal in a future version.
      This method is scheduled for removal. Use component IDs directly.
      Gets the interface address for this equipment slot.
      Returns:
      the interface address for the equipment component
    • fromSlotIndex

      public static EquipmentSlot fromSlotIndex(int slot)
      Gets the equipment slot corresponding to the given slot index.
      Parameters:
      slot - the slot index to look up
      Returns:
      the corresponding EquipmentSlot, or null if not found