Modifier and Type | Method and Description |
---|---|
static ArmorType |
fromName(java.lang.String type)
Converts type name to armor type enumeration
|
static ArmorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ArmorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArmorType FEET
public static final ArmorType HANDS
public static final ArmorType OFFHAND
public static final ArmorType CHEST
public static final ArmorType HEAD
public static ArmorType[] values()
for (ArmorType c : ArmorType.values()) System.out.println(c);
public static ArmorType 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 ArmorType fromName(java.lang.String type)
type
- String with type name