public static enum BlockTallGrass.EnumType extends java.lang.Enum<BlockTallGrass.EnumType> implements IStringSerializable
Modifier and Type | Field and Description |
---|---|
private int |
meta |
private static BlockTallGrass.EnumType[] |
META_LOOKUP |
private java.lang.String |
name |
Modifier and Type | Method and Description |
---|---|
static BlockTallGrass.EnumType |
byMetadata(int meta) |
int |
getMeta() |
java.lang.String |
getName() |
java.lang.String |
toString() |
static BlockTallGrass.EnumType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BlockTallGrass.EnumType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockTallGrass.EnumType DEAD_BUSH
public static final BlockTallGrass.EnumType GRASS
public static final BlockTallGrass.EnumType FERN
private static final BlockTallGrass.EnumType[] META_LOOKUP
private final int meta
private final java.lang.String name
public static BlockTallGrass.EnumType[] values()
for (BlockTallGrass.EnumType c : BlockTallGrass.EnumType.values()) System.out.println(c);
public static BlockTallGrass.EnumType 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 java.lang.String toString()
toString
in class java.lang.Enum<BlockTallGrass.EnumType>
public static BlockTallGrass.EnumType byMetadata(int meta)
public java.lang.String getName()
getName
in interface IStringSerializable