public enum DyeColor extends java.lang.Enum<DyeColor> implements IStringSerializable
Enum Constant and Description |
---|
BLACK |
BLUE |
BROWN |
CYAN |
GRAY |
GREEN |
LIGHT_BLUE |
LIGHT_GRAY |
LIME |
MAGENTA |
ORANGE |
PINK |
PURPLE |
RED |
WHITE |
YELLOW |
Modifier and Type | Field and Description |
---|---|
private static it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<DyeColor> |
BY_FIREWORK_COLOR |
private float[] |
colorComponentValues |
private int |
colorValue |
private int |
fireworkColor |
private int |
id |
private MaterialColor |
mapColor |
private int |
swappedColorValue |
private Tag<Item> |
tag |
private int |
textColor |
private java.lang.String |
translationKey |
private static DyeColor[] |
VALUES |
Modifier and Type | Method and Description |
---|---|
static DyeColor |
byFireworkColor(int fireworkColorIn) |
static DyeColor |
byId(int colorId) |
static DyeColor |
byTranslationKey(java.lang.String translationKeyIn,
DyeColor fallback) |
static DyeColor |
getColor(ItemStack stack) |
float[] |
getColorComponentValues() |
int |
getColorValue() |
int |
getFireworkColor() |
int |
getId() |
MaterialColor |
getMapColor() |
java.lang.String |
getName() |
Tag<Item> |
getTag() |
int |
getTextColor() |
java.lang.String |
getTranslationKey() |
java.lang.String |
toString() |
static DyeColor |
valueOf(java.lang.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
private static final DyeColor[] VALUES
private static final it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<DyeColor> BY_FIREWORK_COLOR
private final int id
private final java.lang.String translationKey
private final MaterialColor mapColor
private final int colorValue
private final int swappedColorValue
private final float[] colorComponentValues
private final int fireworkColor
private final int textColor
public static DyeColor[] values()
for (DyeColor c : DyeColor.values()) System.out.println(c);
public static DyeColor valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getId()
public java.lang.String getTranslationKey()
public float[] getColorComponentValues()
public MaterialColor getMapColor()
public int getFireworkColor()
public int getTextColor()
public static DyeColor byId(int colorId)
public static DyeColor byTranslationKey(java.lang.String translationKeyIn, DyeColor fallback)
@Nullable public static DyeColor byFireworkColor(int fireworkColorIn)
public java.lang.String toString()
toString
in class java.lang.Enum<DyeColor>
public java.lang.String getName()
getName
in interface IStringSerializable
public int getColorValue()