kittype: use ordinal for index

This commit is contained in:
Adam
2021-01-19 15:00:31 -05:00
parent e9be96f8ae
commit f8b407f79a

View File

@@ -36,28 +36,18 @@ import net.runelite.api.PlayerComposition;
*/ */
public enum KitType public enum KitType
{ {
HEAD(0), HEAD,
CAPE(1), CAPE,
AMULET(2), AMULET,
WEAPON(3), WEAPON,
TORSO(4), TORSO,
SHIELD(5), SHIELD,
ARMS(6), ARMS,
LEGS(7), LEGS,
HAIR(8), HAIR,
HANDS(9), HANDS,
BOOTS(10), BOOTS,
JAW(11); JAW;
/**
* Raw equipment index.
*/
private final int index;
KitType(int index)
{
this.index = index;
}
/** /**
* Gets the raw equipment index for use in {@link PlayerComposition#getEquipmentIds()}. * Gets the raw equipment index for use in {@link PlayerComposition#getEquipmentIds()}.
@@ -66,6 +56,6 @@ public enum KitType
*/ */
public int getIndex() public int getIndex()
{ {
return index; return ordinal();
} }
} }