public enum EnumDyeColor extends java.lang.Enum<EnumDyeColor> implements IStringSerializable
Enum Constant and Description |
---|
BLACK |
BLUE |
BROWN |
CYAN |
GRAY |
GREEN |
LIGHT_BLUE |
LIME |
MAGENTA |
ORANGE |
PINK |
PURPLE |
RED |
SILVER |
WHITE |
YELLOW |
Modifier and Type | Field and Description |
---|---|
private TextFormatting |
chatColor |
private float[] |
colorComponentValues |
private int |
colorValue |
private static EnumDyeColor[] |
DYE_DMG_LOOKUP |
private int |
dyeDamage |
private int |
meta |
private static EnumDyeColor[] |
META_LOOKUP |
private java.lang.String |
name |
private java.lang.String |
unlocalizedName |
Modifier and Type | Method and Description |
---|---|
static EnumDyeColor |
byDyeDamage(int damage) |
static EnumDyeColor |
byMetadata(int meta) |
float[] |
getColorComponentValues() |
int |
getColorValue() |
java.lang.String |
getDyeColorName() |
int |
getDyeDamage() |
int |
getMetadata() |
java.lang.String |
getName() |
java.lang.String |
getUnlocalizedName() |
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 SILVER
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
private static final EnumDyeColor[] META_LOOKUP
private static final EnumDyeColor[] DYE_DMG_LOOKUP
private final int meta
private final int dyeDamage
private final java.lang.String name
private final java.lang.String unlocalizedName
private final int colorValue
private final float[] colorComponentValues
private final TextFormatting chatColor
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 getMetadata()
public int getDyeDamage()
public java.lang.String getDyeColorName()
public java.lang.String getUnlocalizedName()
public int getColorValue()
public float[] getColorComponentValues()
public static EnumDyeColor byDyeDamage(int damage)
public static EnumDyeColor byMetadata(int meta)
public java.lang.String toString()
toString
in class java.lang.Enum<EnumDyeColor>
public java.lang.String getName()
getName
in interface IStringSerializable