public enum ArmorMaterial extends java.lang.Enum<ArmorMaterial>
Enum Constant and Description |
---|
CLOTH |
IRON |
LEATHER |
NEPHRITE |
STEEL |
Modifier and Type | Method and Description |
---|---|
static int |
fromNameToId(java.lang.String material)
Converts material name to material ID
|
static ArmorMaterial |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ArmorMaterial[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArmorMaterial CLOTH
public static final ArmorMaterial LEATHER
public static final ArmorMaterial IRON
public static final ArmorMaterial STEEL
public static final ArmorMaterial NEPHRITE
public static ArmorMaterial[] values()
for (ArmorMaterial c : ArmorMaterial.values()) System.out.println(c);
public static ArmorMaterial 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 int fromNameToId(java.lang.String material)
material
- String with material name