kittype: use ordinal as index
This commit is contained in:
@@ -39,25 +39,30 @@ import lombok.Getter;
|
|||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public enum KitType
|
public enum KitType
|
||||||
{
|
{
|
||||||
HEAD("Head", 0),
|
HEAD("Head"),
|
||||||
CAPE("Cape", 1),
|
CAPE("Cape"),
|
||||||
AMULET("Amulet", 2),
|
AMULET("Amulet"),
|
||||||
WEAPON("Weapon", 3),
|
WEAPON("Weapon"),
|
||||||
TORSO("Torso", 4),
|
TORSO("Torso"),
|
||||||
SHIELD("Shield", 5),
|
SHIELD("Shield"),
|
||||||
ARMS("Arms", 6),
|
ARMS("Arms"),
|
||||||
LEGS("Legs", 7),
|
LEGS("Legs"),
|
||||||
HAIR("Hair", 8),
|
HAIR("Hair"),
|
||||||
HANDS("Hands", 9),
|
HANDS("Hands"),
|
||||||
BOOTS("Boots", 10),
|
BOOTS("Boots"),
|
||||||
JAW("Jaw", 11),
|
JAW("Jaw"),
|
||||||
RING("Ring", 12),
|
RING("Ring"),
|
||||||
AMMUNITION("Ammo", 13);
|
AMMUNITION("Ammo");
|
||||||
|
|
||||||
private final String name;
|
private final String name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the raw equipment index for use in {PlayerAppearance#getEquipmentIds()}.
|
* Gets the raw equipment index for use in {@link net.runelite.api.PlayerComposition#getEquipmentIds()}.
|
||||||
|
*
|
||||||
|
* @return raw equipment index
|
||||||
*/
|
*/
|
||||||
private final int index;
|
public int getIndex()
|
||||||
|
{
|
||||||
|
return ordinal();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user