tmorph: clean up, beautify, and more! (#1453)

* tmorph: clean up, beautify, and more!

* kittype: added name for mapping.

* tmorph: fix all maps being the same.
This commit is contained in:
Ganom
2019-08-27 12:30:11 -04:00
committed by GitHub
parent 0f347f3b91
commit f9d3dc9f1d
4 changed files with 165 additions and 1161 deletions

View File

@@ -24,6 +24,9 @@
*/
package net.runelite.api.kit;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* Represents an equipment slot in a players composition.
* <p>
@@ -32,39 +35,28 @@ package net.runelite.api.kit;
* equipment {net.runelite.api.ItemContainer}, use
* {net.runelite.api.EquipmentInventorySlot}.
*/
@Getter
@AllArgsConstructor
public enum KitType
{
HELMET(0),
CAPE(1),
AMULET(2),
WEAPON(3),
TORSO(4),
SHIELD(5),
LEGS(7),
HEAD(8),
HANDS(9),
BOOTS(10),
JAW(11),
RING(12),
AMMUNITION(13);
HELMET("Helmet", 0),
CAPE("Cape", 1),
AMULET("Amulet", 2),
WEAPON("Weapon", 3),
TORSO("Torso", 4),
SHIELD("Shield", 5),
LEGS("Legs", 7),
HEAD("Head", 8),
HANDS("Hands", 9),
BOOTS("Boots", 10),
JAW("Jaw", 11),
RING("Ring", 12),
AMMUNITION("Ammo", 13);
/**
* Raw equipment index.
*/
private final int index;
KitType(int index)
{
this.index = index;
}
private final String name;
/**
* Gets the raw equipment index for use in {PlayerAppearance#getEquipmentIds()}.
*
* @return raw equipment index
*/
public int getIndex()
{
return index;
}
private final int index;
}