Modifier and Type | Method and Description |
---|---|
static EnumUsed |
fromMeta(int i) |
int |
getMeta() |
java.lang.String |
getSerializedName() |
java.lang.String |
toString() |
static EnumUsed |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumUsed[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static EnumUsed[] values()
for (EnumUsed c : EnumUsed.values()) System.out.println(c);
public static EnumUsed 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 getMeta()
public static EnumUsed fromMeta(int i)
public java.lang.String toString()
toString
in class java.lang.Enum<EnumUsed>
public java.lang.String getSerializedName()
getSerializedName
in interface net.minecraft.util.IStringSerializable