|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<DyeColor> org.bukkit.DyeColor
public enum DyeColor
All supported color values for dyes and cloth
Enum Constant Summary | |
---|---|
BLACK
Represents black dye |
|
BLUE
Represents blue dye |
|
BROWN
Represents brown dye |
|
CYAN
Represents cyan dye |
|
GRAY
Represents gray dye |
|
GREEN
Represents green dye |
|
LIGHT_BLUE
Represents light blue dye |
|
LIME
Represents lime dye |
|
MAGENTA
Represents magenta dye |
|
ORANGE
Represents orange dye |
|
PINK
Represents pink dye |
|
PURPLE
Represents purple dye |
|
RED
Represents red dye |
|
SILVER
Represents silver dye |
|
WHITE
Represents white dye |
|
YELLOW
Represents yellow dye |
Method Summary | |
---|---|
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_SACK but uses Material.WOOL |
static DyeColor |
getByDyeData(byte data)
Gets the DyeColor with the given dye data value. |
static DyeColor |
getByFireworkColor(Color color)
Gets the DyeColor with the given firework color value |
static DyeColor |
getByWoolData(byte data)
Gets the DyeColor with the given wool data value. |
Color |
getColor()
Gets the color that this dye represents |
byte |
getData()
Deprecated. The name is misleading. It would imply Material.INK_SACK but uses Material.WOOL |
byte |
getDyeData()
Gets the associated dye data value representing this color. |
Color |
getFireworkColor()
Gets the firework color that this dye represents |
byte |
getWoolData()
Gets the associated wool data value representing this color. |
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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
public static final 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 name@Deprecated public byte getData()
Material.INK_SACK
but uses Material.WOOL
getWoolData()
,
getDyeData()
public byte getWoolData()
getDyeData()
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)
Material.INK_SACK
but uses Material.WOOL
data
- (wool) data value to fetch
DyeColor
representing the given value, or null if it doesn't existgetByDyeData(byte)
,
getByWoolData(byte)
public static DyeColor getByWoolData(byte data)
data
- Wool data value to fetch
DyeColor
representing the given value, or null if it doesn't existgetByDyeData(byte)
public static DyeColor getByDyeData(byte data)
data
- Dye data value to fetch
DyeColor
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 by
DyeColor
representing the given value, or null if it doesn't existpublic static DyeColor getByFireworkColor(Color color)
color
- Color value to get dye by
DyeColor
representing the given value, or null if it doesn't exist
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |