public static enum BlockPlanks.EnumType extends java.lang.Enum<BlockPlanks.EnumType> implements IStringSerializable
Enum Constant and Description |
---|
ACACIA |
BIRCH |
DARK_OAK |
JUNGLE |
OAK |
SPRUCE |
Modifier and Type | Field and Description |
---|---|
private MapColor |
mapColor |
private int |
meta |
private static BlockPlanks.EnumType[] |
META_LOOKUP |
private java.lang.String |
name |
private java.lang.String |
unlocalizedName |
Modifier and Type | Method and Description |
---|---|
static BlockPlanks.EnumType |
byMetadata(int meta) |
MapColor |
getMapColor() |
int |
getMetadata() |
java.lang.String |
getName() |
java.lang.String |
getUnlocalizedName() |
java.lang.String |
toString() |
static BlockPlanks.EnumType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BlockPlanks.EnumType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockPlanks.EnumType OAK
public static final BlockPlanks.EnumType SPRUCE
public static final BlockPlanks.EnumType BIRCH
public static final BlockPlanks.EnumType JUNGLE
public static final BlockPlanks.EnumType ACACIA
public static final BlockPlanks.EnumType DARK_OAK
private static final BlockPlanks.EnumType[] META_LOOKUP
private final int meta
private final java.lang.String name
private final java.lang.String unlocalizedName
private final MapColor mapColor
public static BlockPlanks.EnumType[] values()
for (BlockPlanks.EnumType c : BlockPlanks.EnumType.values()) System.out.println(c);
public static BlockPlanks.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 getMetadata()
public MapColor getMapColor()
public java.lang.String toString()
toString
in class java.lang.Enum<BlockPlanks.EnumType>
public static BlockPlanks.EnumType byMetadata(int meta)
public java.lang.String getName()
getName
in interface IStringSerializable
public java.lang.String getUnlocalizedName()