Serializable
, Comparable<DyeColor>
public enum DyeColor extends Enum<DyeColor>
Enum Constant | Description |
---|---|
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.
|
LIGHT_GRAY |
Represents light gray 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.
|
WHITE |
Represents white dye.
|
YELLOW |
Represents yellow dye.
|
Modifier and Type | Method | Description |
---|---|---|
static @Nullable DyeColor |
getByColor(@NotNull Color color) |
Gets the DyeColor with the given color value.
|
static @Nullable DyeColor |
getByDyeData(byte data) |
Deprecated.
Magic value
|
static @Nullable DyeColor |
getByFireworkColor(@NotNull Color color) |
Gets the DyeColor with the given firework color value.
|
static @Nullable DyeColor |
getByWoolData(byte data) |
Deprecated.
Magic value
|
@NotNull Color |
getColor() |
Gets the color that this dye represents.
|
byte |
getDyeData() |
Deprecated.
Magic value
|
@NotNull Color |
getFireworkColor() |
Gets the firework color that this dye represents.
|
byte |
getWoolData() |
Deprecated.
Magic value
|
static @NotNull DyeColor |
legacyValueOf(@Nullable String name) |
Deprecated.
legacy use only
|
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 LIGHT_GRAY
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 getWoolData()
getDyeData()
@Deprecated public byte getDyeData()
getWoolData()
@NotNull public @NotNull Color getColor()
Color
that this dye represents@NotNull public @NotNull Color getFireworkColor()
Color
that this dye represents@Deprecated @Nullable public static @Nullable DyeColor getByWoolData(byte data)
data
- Wool data value to fetchDyeColor
representing the given value, or null if
it doesn't existgetByDyeData(byte)
@Deprecated @Nullable public static @Nullable DyeColor getByDyeData(byte data)
data
- Dye data value to fetchDyeColor
representing the given value, or null if
it doesn't existgetByWoolData(byte)
@Nullable public static @Nullable DyeColor getByColor(@NotNull @NotNull Color color)
color
- Color value to get the dye byDyeColor
representing the given value, or null if
it doesn't exist@Nullable public static @Nullable DyeColor getByFireworkColor(@NotNull @NotNull Color color)
color
- Color value to get dye byDyeColor
representing the given value, or null if
it doesn't exist@Deprecated @NotNull public static @NotNull DyeColor legacyValueOf(@Nullable @Nullable String name)
name
- dye nameCopyright © 2020. All rights reserved.