public static enum BlockDirt.DirtType extends java.lang.Enum<BlockDirt.DirtType> implements IStringSerializable
Enum Constant and Description |
---|
COARSE_DIRT |
DIRT |
PODZOL |
Modifier and Type | Field and Description |
---|---|
private MapColor |
color |
private int |
metadata |
private static BlockDirt.DirtType[] |
METADATA_LOOKUP |
private java.lang.String |
name |
private java.lang.String |
unlocalizedName |
Modifier and Type | Method and Description |
---|---|
static BlockDirt.DirtType |
byMetadata(int metadata) |
MapColor |
getColor() |
int |
getMetadata() |
java.lang.String |
getName() |
java.lang.String |
getUnlocalizedName() |
java.lang.String |
toString() |
static BlockDirt.DirtType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BlockDirt.DirtType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockDirt.DirtType DIRT
public static final BlockDirt.DirtType COARSE_DIRT
public static final BlockDirt.DirtType PODZOL
private static final BlockDirt.DirtType[] METADATA_LOOKUP
private final int metadata
private final java.lang.String name
private final java.lang.String unlocalizedName
private final MapColor color
public static BlockDirt.DirtType[] values()
for (BlockDirt.DirtType c : BlockDirt.DirtType.values()) System.out.println(c);
public static BlockDirt.DirtType 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 getMetadata()
public java.lang.String getUnlocalizedName()
public MapColor getColor()
public java.lang.String toString()
toString
in class java.lang.Enum<BlockDirt.DirtType>
public static BlockDirt.DirtType byMetadata(int metadata)
public java.lang.String getName()
getName
in interface IStringSerializable