| Enum Constant and Description |
|---|
BLUE |
GRAY |
ORANGE |
PINK |
PURPLE |
RED |
WHITE |
YELLOW |
| Modifier and Type | Field and Description |
|---|---|
int |
color |
| Modifier and Type | Method and Description |
|---|---|
static DyeColor |
fromMeta(int meta)
Obtains the
DyeColor given the flower based on the flowers. |
static DyeColor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DyeColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DyeColor GRAY
public static final DyeColor ORANGE
public static final DyeColor PINK
public static final DyeColor RED
public static final DyeColor WHITE
public static final DyeColor YELLOW
public static final DyeColor BLUE
public static final DyeColor PURPLE
public static DyeColor[] values()
for (DyeColor c : DyeColor.values()) System.out.println(c);
public static DyeColor 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 null