public enum DyeColor extends Enum<DyeColor>
| Enum Constant and Description | 
|---|
| BLACKRepresents black dye. | 
| BLUERepresents blue dye. | 
| BROWNRepresents brown dye. | 
| CYANRepresents cyan dye. | 
| GRAYRepresents gray dye. | 
| GREENRepresents green dye. | 
| LIGHT_BLUERepresents light blue dye. | 
| LIMERepresents lime dye. | 
| MAGENTARepresents magenta dye. | 
| ORANGERepresents orange dye. | 
| PINKRepresents pink dye. | 
| PURPLERepresents purple dye. | 
| REDRepresents red dye. | 
| SILVERRepresents silver dye. | 
| WHITERepresents white dye. | 
| YELLOWRepresents yellow dye. | 
| Modifier and Type | Method and Description | 
|---|---|
| static DyeColor | getByColor(Color color)Gets the DyeColor with the given color value. | 
| static DyeColor | getByData(byte data)Deprecated. 
 The name is misleading. It would imply  Material.INK_SACKbut usesMaterial.WOOL | 
| static DyeColor | getByDyeData(byte data)Deprecated. 
 Magic value | 
| static DyeColor | getByFireworkColor(Color color)Gets the DyeColor with the given firework color value. | 
| static DyeColor | getByWoolData(byte data)Deprecated. 
 Magic value | 
| Color | getColor()Gets the color that this dye represents. | 
| byte | getData()Deprecated. 
 The name is misleading. It would imply  Material.INK_SACKbut usesMaterial.WOOL | 
| byte | getDyeData()Deprecated. 
 Magic value | 
| Color | getFireworkColor()Gets the firework color that this dye represents. | 
| byte | getWoolData()Deprecated. 
 Magic value | 
| 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 WHITE
public static final DyeColor ORANGE
public static final DyeColor MAGENTA
public static final DyeColor LIGHT_BLUE
public static final DyeColor YELLOW
public static final DyeColor LIME
public static final DyeColor PINK
public static final DyeColor GRAY
public static final DyeColor SILVER
public static final DyeColor CYAN
public static final DyeColor PURPLE
public static final DyeColor BLUE
public static final DyeColor BROWN
public static final DyeColor GREEN
public static final DyeColor RED
public static final DyeColor BLACK
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 null@Deprecated public byte getData()
getWoolData(), 
getDyeData()@Deprecated public byte getWoolData()
getDyeData()@Deprecated public byte getDyeData()
getWoolData()public Color getColor()
Color that this dye representspublic Color getFireworkColor()
Color that this dye represents@Deprecated public static DyeColor getByData(byte data)
data - (wool) data value to fetchDyeColor representing the given value, or null if
     it doesn't existgetByDyeData(byte), 
getByWoolData(byte)@Deprecated public static DyeColor getByWoolData(byte data)
data - Wool data value to fetchDyeColor representing the given value, or null if
     it doesn't existgetByDyeData(byte)@Deprecated public static DyeColor getByDyeData(byte data)
data - Dye data value to fetchDyeColor representing the given value, or null if
     it doesn't existgetByWoolData(byte)public static DyeColor getByColor(Color color)
color - Color value to get the dye byDyeColor representing the given value, or null if
     it doesn't existCopyright © 2015. All rights reserved.