public enum DyeColor extends Enum<DyeColor>
列挙型定数と説明 |
---|
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.
|
修飾子とタイプ | メソッドと説明 |
---|---|
static DyeColor |
getByColor(Color color)
Gets the DyeColor with the given color value.
|
static DyeColor |
getByData(byte data)
非推奨です。
The name is misleading. It would imply
Material.INK_SACK but uses Material.WOOL |
static DyeColor |
getByDyeData(byte data)
非推奨です。
Magic value
|
static DyeColor |
getByFireworkColor(Color color)
Gets the DyeColor with the given firework color value.
|
static DyeColor |
getByWoolData(byte data)
非推奨です。
Magic value
|
Color |
getColor()
Gets the color that this dye represents.
|
byte |
getData()
非推奨です。
The name is misleading. It would imply
Material.INK_SACK but uses Material.WOOL |
byte |
getDyeData()
非推奨です。
Magic value
|
Color |
getFireworkColor()
Gets the firework color that this dye represents.
|
byte |
getWoolData()
非推奨です。
Magic value
|
static DyeColor |
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static DyeColor[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
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
- 返される列挙型定数の名前。IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合NullPointerException
- 引数がnullの場合@Deprecated public byte getData()
Material.INK_SACK
but uses Material.WOOL
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)
Material.INK_SACK
but uses Material.WOOL
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 © 2016. All rights reserved.