Package net.minecraft.block
Enum BlockStoneSlab.EnumType
- java.lang.Object
-
- java.lang.Enum<BlockStoneSlab.EnumType>
-
- net.minecraft.block.BlockStoneSlab.EnumType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BlockStoneSlab.EnumType>
,IStringSerializable
- Enclosing class:
- BlockStoneSlab
public static enum BlockStoneSlab.EnumType extends java.lang.Enum<BlockStoneSlab.EnumType> implements IStringSerializable
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BRICK
COBBLESTONE
NETHERBRICK
QUARTZ
SAND
SMOOTHBRICK
STONE
WOOD
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BlockStoneSlab.EnumType
byMetadata(int meta)
MapColor
func_181074_c()
int
getMetadata()
java.lang.String
getName()
java.lang.String
getUnlocalizedName()
+ Returns the slab block name with the type associated with itjava.lang.String
toString()
static BlockStoneSlab.EnumType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BlockStoneSlab.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 BlockStoneSlab.EnumType STONE
-
SAND
public static final BlockStoneSlab.EnumType SAND
-
WOOD
public static final BlockStoneSlab.EnumType WOOD
-
COBBLESTONE
public static final BlockStoneSlab.EnumType COBBLESTONE
-
BRICK
public static final BlockStoneSlab.EnumType BRICK
-
SMOOTHBRICK
public static final BlockStoneSlab.EnumType SMOOTHBRICK
-
NETHERBRICK
public static final BlockStoneSlab.EnumType NETHERBRICK
-
QUARTZ
public static final BlockStoneSlab.EnumType QUARTZ
-
-
Method Detail
-
values
public static BlockStoneSlab.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 (BlockStoneSlab.EnumType c : BlockStoneSlab.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 BlockStoneSlab.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_181074_c
public MapColor func_181074_c()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<BlockStoneSlab.EnumType>
-
byMetadata
public static BlockStoneSlab.EnumType byMetadata(int meta)
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceIStringSerializable
-
getUnlocalizedName
public java.lang.String getUnlocalizedName()
+ Returns the slab block name with the type associated with it
-
-