public enum EquipSlotIndex extends java.lang.Enum<EquipSlotIndex> implements Id
Enum Constant and Description |
---|
AMULET |
BODY |
BOOTS |
CAPE |
GLOVES |
Helmet |
LEGS |
NOTHING |
RING |
SHIELD |
WEAPON |
Modifier and Type | Method and Description |
---|---|
static EquipSlotIndex |
getById(java.lang.Integer id)
Retrieves the slot NAME associated with the given EquipSlotIndex, or NOTHING if no mapping *
exists for the id.
|
static EquipSlotIndex |
getByName(java.lang.String name)
Retrieves an 'EquipSlotIndex' int by its NAME.
|
int |
getId()
Retrieves the 'EquipSlotIndex' int by the slot NAME.
For Example: 'int guard = EquipSlotIndex.GUARD.getId()' |
static EquipSlotIndex |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EquipSlotIndex[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EquipSlotIndex NOTHING
public static final EquipSlotIndex Helmet
public static final EquipSlotIndex BODY
public static final EquipSlotIndex LEGS
public static final EquipSlotIndex SHIELD
public static final EquipSlotIndex WEAPON
public static final EquipSlotIndex GLOVES
public static final EquipSlotIndex AMULET
public static final EquipSlotIndex CAPE
public static final EquipSlotIndex RING
public static final EquipSlotIndex BOOTS
public static EquipSlotIndex[] values()
for (EquipSlotIndex c : EquipSlotIndex.values()) System.out.println(c);
public static EquipSlotIndex valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static EquipSlotIndex getById(java.lang.Integer id)
id
- the EquipSlotIndex of the slotpublic static EquipSlotIndex getByName(java.lang.String name)
name
- the name of the slot