public enum DyeColor extends Enum<DyeColor>
Enum Constant and Description |
---|
GRAY |
LIGHT_BLUE |
LIME |
MAGENTA |
ORANGE |
PINK |
PURPLE |
RED |
WHITE |
YELLOW |
Modifier and Type | Method and Description |
---|---|
short |
getColorFor(Material type) |
short |
getDye() |
short |
getWool() |
static DyeColor |
valueOf(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 PURPLE
public static final DyeColor GRAY
public static final DyeColor ORANGE
public static final DyeColor LIME
public static final DyeColor LIGHT_BLUE
public static final DyeColor MAGENTA
public static final DyeColor PINK
public static final DyeColor RED
public static final DyeColor WHITE
public static final DyeColor YELLOW
public static DyeColor[] values()
for (DyeColor c : DyeColor.values()) System.out.println(c);
public static DyeColor valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic short getWool()
public short getDye()
public short getColorFor(Material type)