public enum EquipmentSlot extends Enum<EquipmentSlot>
Modifier and Type | Class and Description |
---|---|
static class |
EquipmentSlot.Type |
Enum Constant and Description |
---|
CHEST |
FEET |
HEAD |
LEGS |
MAINHAND |
OFFHAND |
Modifier and Type | Field and Description |
---|---|
private int |
armorStandId |
private int |
entityId |
private String |
name |
private EquipmentSlot.Type |
type |
Modifier and Type | Method and Description |
---|---|
static EquipmentSlot |
byName(String name) |
static EquipmentSlot |
fromTypeIndex(EquipmentSlot.Type type,
int index) |
int |
getArmorStandSlotId() |
int |
getEntitySlotId() |
String |
getName() |
EquipmentSlot.Type |
getType() |
static EquipmentSlot |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EquipmentSlot[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EquipmentSlot MAINHAND
public static final EquipmentSlot OFFHAND
public static final EquipmentSlot FEET
public static final EquipmentSlot LEGS
public static final EquipmentSlot CHEST
public static final EquipmentSlot HEAD
private final EquipmentSlot.Type type
private final int entityId
private final int armorStandId
private final String name
public static EquipmentSlot[] values()
for (EquipmentSlot c : EquipmentSlot.values()) System.out.println(c);
public static EquipmentSlot valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic EquipmentSlot.Type getType()
public int getEntitySlotId()
public int getArmorStandSlotId()
public String getName()
public static EquipmentSlot byName(String name)
public static EquipmentSlot fromTypeIndex(EquipmentSlot.Type type, int index)