public static enum IToolMaterial.Tools extends java.lang.Enum<IToolMaterial.Tools>
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Returns the index.
|
static IToolMaterial.Tools |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IToolMaterial.Tools[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IToolMaterial.Tools AXE
public static final IToolMaterial.Tools HOE
public static final IToolMaterial.Tools PICKAXE
public static final IToolMaterial.Tools SPADE
public static final IToolMaterial.Tools SWORD
public static IToolMaterial.Tools[] values()
for (IToolMaterial.Tools c : IToolMaterial.Tools.values()) System.out.println(c);
public static IToolMaterial.Tools 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 int getIndex()
UToolMaterial
for simple arrays.