Package net.runelite.api
Enum EquipmentInventorySlot
- java.lang.Object
-
- java.lang.Enum<EquipmentInventorySlot>
-
- net.runelite.api.EquipmentInventorySlot
-
- All Implemented Interfaces:
Serializable
,Comparable<EquipmentInventorySlot>
public enum EquipmentInventorySlot extends Enum<EquipmentInventorySlot>
An enumeration of equipment slots in the inventoryItemContainer
.These values are intended for use with the local players equipment
ItemContainer
corresponding. For obtaining information about equipment in thePlayerComposition
, useKitType
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSlotIdx()
Gets the index into the item array obtained fromItemContainer.getItems()
.static EquipmentInventorySlot
valueOf(String name)
Returns the enum constant of this type with the specified name.static EquipmentInventorySlot[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HEAD
public static final EquipmentInventorySlot HEAD
-
CAPE
public static final EquipmentInventorySlot CAPE
-
AMULET
public static final EquipmentInventorySlot AMULET
-
WEAPON
public static final EquipmentInventorySlot WEAPON
-
BODY
public static final EquipmentInventorySlot BODY
-
SHIELD
public static final EquipmentInventorySlot SHIELD
-
ARMS
public static final EquipmentInventorySlot ARMS
-
LEGS
public static final EquipmentInventorySlot LEGS
-
HAIR
public static final EquipmentInventorySlot HAIR
-
GLOVES
public static final EquipmentInventorySlot GLOVES
-
BOOTS
public static final EquipmentInventorySlot BOOTS
-
JAW
public static final EquipmentInventorySlot JAW
-
RING
public static final EquipmentInventorySlot RING
-
AMMO
public static final EquipmentInventorySlot AMMO
-
-
Method Detail
-
values
public static EquipmentInventorySlot[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EquipmentInventorySlot c : EquipmentInventorySlot.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EquipmentInventorySlot valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getSlotIdx
public int getSlotIdx()
Gets the index into the item array obtained fromItemContainer.getItems()
.- Returns:
- the raw index
-
-