Package net.minecraft.block
Enum BlockStone.EnumType
- java.lang.Object
-
- java.lang.Enum<BlockStone.EnumType>
-
- net.minecraft.block.BlockStone.EnumType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BlockStone.EnumType>
,IStringSerializable
- Enclosing class:
- BlockStone
public static enum BlockStone.EnumType extends java.lang.Enum<BlockStone.EnumType> implements IStringSerializable
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANDESITE
ANDESITE_SMOOTH
DIORITE
DIORITE_SMOOTH
GRANITE
GRANITE_SMOOTH
STONE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BlockStone.EnumType
byMetadata(int meta)
MapColor
func_181072_c()
int
getMetadata()
java.lang.String
getName()
java.lang.String
getUnlocalizedName()
java.lang.String
toString()
static BlockStone.EnumType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BlockStone.EnumType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STONE
public static final BlockStone.EnumType STONE
-
GRANITE
public static final BlockStone.EnumType GRANITE
-
GRANITE_SMOOTH
public static final BlockStone.EnumType GRANITE_SMOOTH
-
DIORITE
public static final BlockStone.EnumType DIORITE
-
DIORITE_SMOOTH
public static final BlockStone.EnumType DIORITE_SMOOTH
-
ANDESITE
public static final BlockStone.EnumType ANDESITE
-
ANDESITE_SMOOTH
public static final BlockStone.EnumType ANDESITE_SMOOTH
-
-
Method Detail
-
values
public static BlockStone.EnumType[] 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 (BlockStone.EnumType c : BlockStone.EnumType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BlockStone.EnumType 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()
-
func_181072_c
public MapColor func_181072_c()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<BlockStone.EnumType>
-
byMetadata
public static BlockStone.EnumType byMetadata(int meta)
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceIStringSerializable
-
getUnlocalizedName
public java.lang.String getUnlocalizedName()
-
-