Package net.runelite.api.kit
Enum KitType
- java.lang.Object
-
- java.lang.Enum<KitType>
-
- net.runelite.api.kit.KitType
-
- All Implemented Interfaces:
Serializable
,Comparable<KitType>
public enum KitType extends Enum<KitType>
Represents an equipment slot in a players composition.These values are intended for use with
PlayerComposition
equipment slots. For obtaining information about equipment in the local players equipmentItemContainer
, useEquipmentInventorySlot
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIndex()
Gets the raw equipment index for use inPlayerComposition.getEquipmentIds()
.static KitType
valueOf(String name)
Returns the enum constant of this type with the specified name.static KitType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HEAD
public static final KitType HEAD
-
CAPE
public static final KitType CAPE
-
AMULET
public static final KitType AMULET
-
WEAPON
public static final KitType WEAPON
-
TORSO
public static final KitType TORSO
-
SHIELD
public static final KitType SHIELD
-
ARMS
public static final KitType ARMS
-
LEGS
public static final KitType LEGS
-
HAIR
public static final KitType HAIR
-
HANDS
public static final KitType HANDS
-
BOOTS
public static final KitType BOOTS
-
JAW
public static final KitType JAW
-
-
Method Detail
-
values
public static KitType[] 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 (KitType c : KitType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KitType 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
-
getIndex
public int getIndex()
Gets the raw equipment index for use inPlayerComposition.getEquipmentIds()
.- Returns:
- raw equipment index
-
-