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