public enum EquipmentSlotType extends java.lang.Enum<EquipmentSlotType>
Modifier and Type | Class and Description |
---|---|
static class |
EquipmentSlotType.Group |
Enum Constant and Description |
---|
CHEST |
FEET |
HEAD |
LEGS |
MAINHAND |
OFFHAND |
Modifier and Type | Field and Description |
---|---|
private int |
index |
private java.lang.String |
name |
private int |
slotIndex |
private EquipmentSlotType.Group |
slotType |
Modifier and Type | Method and Description |
---|---|
static EquipmentSlotType |
fromSlotTypeAndIndex(EquipmentSlotType.Group slotTypeIn,
int slotIndexIn) |
static EquipmentSlotType |
fromString(java.lang.String targetName) |
int |
getIndex() |
java.lang.String |
getName() |
int |
getSlotIndex() |
EquipmentSlotType.Group |
getSlotType() |
static EquipmentSlotType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EquipmentSlotType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EquipmentSlotType MAINHAND
public static final EquipmentSlotType OFFHAND
public static final EquipmentSlotType FEET
public static final EquipmentSlotType LEGS
public static final EquipmentSlotType CHEST
public static final EquipmentSlotType HEAD
private final EquipmentSlotType.Group slotType
private final int index
private final int slotIndex
private final java.lang.String name
public static EquipmentSlotType[] values()
for (EquipmentSlotType c : EquipmentSlotType.values()) System.out.println(c);
public static EquipmentSlotType 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 EquipmentSlotType.Group getSlotType()
public int getIndex()
public int getSlotIndex()
public java.lang.String getName()
public static EquipmentSlotType fromString(java.lang.String targetName)
public static EquipmentSlotType fromSlotTypeAndIndex(EquipmentSlotType.Group slotTypeIn, int slotIndexIn)