Package net.minecraft.block
Enum BlockDirt.DirtType
- java.lang.Object
-
- java.lang.Enum<BlockDirt.DirtType>
-
- net.minecraft.block.BlockDirt.DirtType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BlockDirt.DirtType>
,IStringSerializable
- Enclosing class:
- BlockDirt
public static enum BlockDirt.DirtType extends java.lang.Enum<BlockDirt.DirtType> implements IStringSerializable
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COARSE_DIRT
DIRT
PODZOL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BlockDirt.DirtType
byMetadata(int metadata)
MapColor
func_181066_d()
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.
-
-
-
Enum Constant Detail
-
DIRT
public static final BlockDirt.DirtType DIRT
-
COARSE_DIRT
public static final BlockDirt.DirtType COARSE_DIRT
-
PODZOL
public static final BlockDirt.DirtType PODZOL
-
-
Method Detail
-
values
public static BlockDirt.DirtType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BlockDirt.DirtType c : BlockDirt.DirtType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BlockDirt.DirtType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getMetadata
public int getMetadata()
-
getUnlocalizedName
public java.lang.String getUnlocalizedName()
-
func_181066_d
public MapColor func_181066_d()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<BlockDirt.DirtType>
-
byMetadata
public static BlockDirt.DirtType byMetadata(int metadata)
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceIStringSerializable
-
-