Enum Constant and Description |
---|
CHEST |
FEET |
HEAD |
LEGS |
MAIN_HAND |
OFF_HAND |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Get the predefined, global and unique name of this slot.
|
static Slot |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Slot[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Slot MAIN_HAND
public static final Slot OFF_HAND
public static final Slot FEET
public static final Slot LEGS
public static final Slot CHEST
public static final Slot HEAD
public static Slot[] values()
for (Slot c : Slot.values()) System.out.println(c);
public static Slot 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 java.lang.String getName()