Package org.bukkit
Enum Class DyeColor
- All Implemented Interfaces:
- Serializable,- Comparable<DyeColor>,- Constable
All supported color values for dyes and cloth
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionRepresents black dye.Represents blue dye.Represents brown dye.Represents cyan dye.Represents gray dye.Represents green dye.Represents light blue dye.Represents light gray dye.Represents lime dye.Represents magenta dye.Represents orange dye.Represents pink dye.Represents purple dye.Represents red dye.Represents white dye.Represents yellow dye.
- 
Method SummaryModifier and TypeMethodDescriptiongetByColor(@NotNull Color color) Gets the DyeColor with the given color value.getByDyeData(byte data) Deprecated.Magic valuegetByFireworkColor(@NotNull Color color) Gets the DyeColor with the given firework color value.getByWoolData(byte data) Deprecated.Magic valuegetColor()Gets the color that this dye represents.byteDeprecated.Magic valueGets the firework color that this dye represents.byteDeprecated.Magic valuelegacyValueOf(@Nullable String name) Deprecated.legacy use onlystatic DyeColorReturns the enum constant of this class with the specified name.static DyeColor[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
WHITERepresents white dye.
- 
ORANGERepresents orange dye.
- 
MAGENTARepresents magenta dye.
- 
LIGHT_BLUERepresents light blue dye.
- 
YELLOWRepresents yellow dye.
- 
LIMERepresents lime dye.
- 
PINKRepresents pink dye.
- 
GRAYRepresents gray dye.
- 
LIGHT_GRAYRepresents light gray dye.
- 
CYANRepresents cyan dye.
- 
PURPLERepresents purple dye.
- 
BLUERepresents blue dye.
- 
BROWNRepresents brown dye.
- 
GREENRepresents green dye.
- 
REDRepresents red dye.
- 
BLACKRepresents black dye.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
getWoolDataDeprecated.Magic valueGets the associated wool data value representing this color.- Returns:
- A byte containing the wool data value of this color
- See Also:
 
- 
getDyeDataDeprecated.Magic valueGets the associated dye data value representing this color.- Returns:
- A byte containing the dye data value of this color
- See Also:
 
- 
getColorGets the color that this dye represents.- Returns:
- The Colorthat this dye represents
 
- 
getFireworkColorGets the firework color that this dye represents.- Returns:
- The Colorthat this dye represents
 
- 
getByWoolDataDeprecated.Magic valueGets the DyeColor with the given wool data value.- Parameters:
- data- Wool data value to fetch
- Returns:
- The DyeColorrepresenting the given value, or null if it doesn't exist
- See Also:
 
- 
getByDyeDataDeprecated.Magic valueGets the DyeColor with the given dye data value.- Parameters:
- data- Dye data value to fetch
- Returns:
- The DyeColorrepresenting the given value, or null if it doesn't exist
- See Also:
 
- 
getByColorGets the DyeColor with the given color value.- Parameters:
- color- Color value to get the dye by
- Returns:
- The DyeColorrepresenting the given value, or null if it doesn't exist
 
- 
getByFireworkColorGets the DyeColor with the given firework color value.- Parameters:
- color- Color value to get dye by
- Returns:
- The DyeColorrepresenting the given value, or null if it doesn't exist
 
- 
legacyValueOfDeprecated.legacy use onlyGets the DyeColor for the given name, possibly doing legacy transformations.- Parameters:
- name- dye name
- Returns:
- dye color
 
 
-