Package net.minecraft.block
Enum BlockFlower.EnumFlowerType
- java.lang.Object
-
- java.lang.Enum<BlockFlower.EnumFlowerType>
-
- net.minecraft.block.BlockFlower.EnumFlowerType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BlockFlower.EnumFlowerType>,IStringSerializable
- Enclosing class:
- BlockFlower
public static enum BlockFlower.EnumFlowerType extends java.lang.Enum<BlockFlower.EnumFlowerType> implements IStringSerializable
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLIUMBLUE_ORCHIDDANDELIONHOUSTONIAORANGE_TULIPOXEYE_DAISYPINK_TULIPPOPPYRED_TULIPWHITE_TULIP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockFlower.EnumFlowerColorgetBlockType()+ Get the Type of this flower (Yellow/Red)intgetMeta()java.lang.StringgetName()static BlockFlower.EnumFlowerTypegetType(BlockFlower.EnumFlowerColor blockType, int meta)static BlockFlower.EnumFlowerType[]getTypes(BlockFlower.EnumFlowerColor flowerColor)java.lang.StringgetUnlocalizedName()java.lang.StringtoString()static BlockFlower.EnumFlowerTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BlockFlower.EnumFlowerType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DANDELION
public static final BlockFlower.EnumFlowerType DANDELION
-
POPPY
public static final BlockFlower.EnumFlowerType POPPY
-
BLUE_ORCHID
public static final BlockFlower.EnumFlowerType BLUE_ORCHID
-
ALLIUM
public static final BlockFlower.EnumFlowerType ALLIUM
-
HOUSTONIA
public static final BlockFlower.EnumFlowerType HOUSTONIA
-
RED_TULIP
public static final BlockFlower.EnumFlowerType RED_TULIP
-
ORANGE_TULIP
public static final BlockFlower.EnumFlowerType ORANGE_TULIP
-
WHITE_TULIP
public static final BlockFlower.EnumFlowerType WHITE_TULIP
-
PINK_TULIP
public static final BlockFlower.EnumFlowerType PINK_TULIP
-
OXEYE_DAISY
public static final BlockFlower.EnumFlowerType OXEYE_DAISY
-
-
Method Detail
-
values
public static BlockFlower.EnumFlowerType[] 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 (BlockFlower.EnumFlowerType c : BlockFlower.EnumFlowerType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BlockFlower.EnumFlowerType 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
-
getBlockType
public BlockFlower.EnumFlowerColor getBlockType()
+ Get the Type of this flower (Yellow/Red)
-
getMeta
public int getMeta()
-
getType
public static BlockFlower.EnumFlowerType getType(BlockFlower.EnumFlowerColor blockType, int meta)
-
getTypes
public static BlockFlower.EnumFlowerType[] getTypes(BlockFlower.EnumFlowerColor flowerColor)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<BlockFlower.EnumFlowerType>
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceIStringSerializable
-
getUnlocalizedName
public java.lang.String getUnlocalizedName()
-
-