public enum VanillaColor extends java.lang.Enum<VanillaColor>
| Enum Constant and Description |
|---|
BLACK |
BLUE |
BROWN |
CYAN |
GRAY |
GREEN |
LIGHT_BLUE |
LIGHT_GRAY |
LIME |
MAGENTAG |
ORANGE |
PINK |
PURPLE |
RED |
WHITE |
YELLOW |
| Modifier and Type | Field and Description |
|---|---|
java.awt.Color |
color
An instance of Color that reflects the vanilla color.
|
java.lang.String |
name
An English representation of the name for the color.
|
| Modifier and Type | Method and Description |
|---|---|
static VanillaColor |
getColorByName(java.lang.String name)
Attempts to retrieve a color, based on a provided name.
|
java.lang.String |
getDyeName()
Provides the OreDictionary name for the dye item associated with this color.
|
java.lang.String |
getGlassBlockName()
Provides the OreDictionary name for the Dyed Glass Block associated with this color.
|
java.lang.String |
getGlassPaneName()
Provides the OreDictionary name for the Dyed Glass Pane associated with this color.
|
static VanillaColor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static VanillaColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VanillaColor BLACK
public static final VanillaColor RED
public static final VanillaColor GREEN
public static final VanillaColor BROWN
public static final VanillaColor BLUE
public static final VanillaColor PURPLE
public static final VanillaColor CYAN
public static final VanillaColor LIGHT_GRAY
public static final VanillaColor GRAY
public static final VanillaColor PINK
public static final VanillaColor LIME
public static final VanillaColor YELLOW
public static final VanillaColor LIGHT_BLUE
public static final VanillaColor MAGENTAG
public static final VanillaColor ORANGE
public static final VanillaColor WHITE
public java.lang.String name
public java.awt.Color color
public static VanillaColor[] values()
for (VanillaColor c : VanillaColor.values()) System.out.println(c);
public static VanillaColor 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 java.lang.String getDyeName()
public java.lang.String getGlassPaneName()
public java.lang.String getGlassBlockName()
public static VanillaColor getColorByName(java.lang.String name)
name: - The name of the color you are looking for. Example: Green