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 | Method and Description |
---|---|
static DyeColor |
byFireworkColor(int p_196058_0_) |
static DyeColor |
byId(int p_196056_0_) |
static DyeColor |
byTranslationKey(java.lang.String p_204271_0_,
DyeColor p_204271_1_) |
int |
func_196057_c() |
int |
func_218388_g() |
static DyeColor |
getColor(ItemStack stack) |
float[] |
getColorComponentValues() |
int |
getColorValue() |
int |
getFireworkColor() |
int |
getId() |
MaterialColor |
getMapColor() |
java.lang.String |
getName() |
Tag<Item> |
getTag() |
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
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 int func_196057_c()
public float[] getColorComponentValues()
public MaterialColor getMapColor()
public int getFireworkColor()
public int func_218388_g()
public static DyeColor byId(int p_196056_0_)
public static DyeColor byTranslationKey(java.lang.String p_204271_0_, DyeColor p_204271_1_)
@Nullable public static DyeColor byFireworkColor(int p_196058_0_)
public java.lang.String toString()
toString
in class java.lang.Enum<DyeColor>
public java.lang.String getName()
getName
in interface IStringSerializable
public int getColorValue()