Package net.storm.api.widgets
Enum Class EquipmentSlot
- All Implemented Interfaces:
Serializable,Comparable<EquipmentSlot>,Constable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAmmunition slot for arrows, bolts, darts, etc.Amulet, necklace, or other neck slot item.Body armor, chest piece slot.Boots or footwear slot.Cape or cloak slot.Gloves or gauntlets slot.Helmet, hat, or other headwear slot.Leg armor, platelegs, or skirt slot.Ring slot.Shield or off-hand item slot.Main-hand weapon slot. -
Method Summary
Modifier and TypeMethodDescriptionstatic EquipmentSlotfromSlotIndex(int slot) Gets the equipment slot corresponding to the given slot index.Deprecated, for removal: This API element is subject to removal in a future version.This method is scheduled for removal.static EquipmentSlotReturns the enum constant of this class with the specified name.static EquipmentSlot[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HEAD
Helmet, hat, or other headwear slot. -
CAPE
Cape or cloak slot. -
AMULET
Amulet, necklace, or other neck slot item. -
WEAPON
Main-hand weapon slot. -
BODY
Body armor, chest piece slot. -
SHIELD
Shield or off-hand item slot. -
LEGS
Leg armor, platelegs, or skirt slot. -
GLOVES
Gloves or gauntlets slot. -
BOOTS
Boots or footwear slot. -
RING
Ring slot. -
AMMO
Ammunition slot for arrows, bolts, darts, etc.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
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
Gets the equipment slot corresponding to the given slot index.- Parameters:
slot- the slot index to look up- Returns:
- the corresponding
EquipmentSlot, ornullif not found
-