public enum EnumDyeColor extends java.lang.Enum<EnumDyeColor> 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 EnumDyeColor |
byId(int p_196056_0_) |
static EnumDyeColor |
byTranslationKey(java.lang.String p_204271_0_) |
int |
func_196057_c() |
static EnumDyeColor |
func_196058_b(int p_196058_0_) |
int |
func_196060_f() |
static EnumDyeColor |
getColor(ItemStack stack) |
float[] |
getColorComponentValues() |
int |
getId() |
MaterialColor |
getMapColor() |
java.lang.String |
getName() |
Tag<Item> |
getTag() |
java.lang.String |
getTranslationKey() |
java.lang.String |
toString() |
static EnumDyeColor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumDyeColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumDyeColor WHITE
public static final EnumDyeColor ORANGE
public static final EnumDyeColor MAGENTA
public static final EnumDyeColor LIGHT_BLUE
public static final EnumDyeColor YELLOW
public static final EnumDyeColor LIME
public static final EnumDyeColor PINK
public static final EnumDyeColor GRAY
public static final EnumDyeColor LIGHT_GRAY
public static final EnumDyeColor CYAN
public static final EnumDyeColor PURPLE
public static final EnumDyeColor BLUE
public static final EnumDyeColor BROWN
public static final EnumDyeColor GREEN
public static final EnumDyeColor RED
public static final EnumDyeColor BLACK
public static EnumDyeColor[] values()
for (EnumDyeColor c : EnumDyeColor.values()) System.out.println(c);
public static EnumDyeColor 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 func_196060_f()
public static EnumDyeColor byId(int p_196056_0_)
public static EnumDyeColor byTranslationKey(java.lang.String p_204271_0_)
@Nullable public static EnumDyeColor func_196058_b(int p_196058_0_)
public java.lang.String toString()
toString
in class java.lang.Enum<EnumDyeColor>
public java.lang.String getName()
getName
in interface IStringSerializable
@Nullable public static EnumDyeColor getColor(ItemStack stack)