public enum TextColor extends java.lang.Enum<TextColor> implements TextFormat
Component.| Enum Constant and Description |
|---|
AQUA |
BLACK |
BLUE |
DARK_AQUA |
DARK_BLUE |
DARK_GRAY |
DARK_GREEN |
DARK_PURPLE |
DARK_RED |
GOLD |
GRAY |
GREEN |
LIGHT_PURPLE |
RED |
WHITE |
YELLOW |
| Modifier and Type | Field and Description |
|---|---|
static NameMap<TextColor> |
NAMES
The name map.
|
| Modifier and Type | Method and Description |
|---|---|
@NonNull java.lang.String |
toString() |
static TextColor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TextColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextColor BLACK
public static final TextColor DARK_BLUE
public static final TextColor DARK_GREEN
public static final TextColor DARK_AQUA
public static final TextColor DARK_RED
public static final TextColor DARK_PURPLE
public static final TextColor GOLD
public static final TextColor GRAY
public static final TextColor DARK_GRAY
public static final TextColor BLUE
public static final TextColor GREEN
public static final TextColor AQUA
public static final TextColor RED
public static final TextColor LIGHT_PURPLE
public static final TextColor YELLOW
public static final TextColor WHITE
public static TextColor[] values()
for (TextColor c : TextColor.values()) System.out.println(c);
public static TextColor 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 @NonNull java.lang.String toString()
toString in class java.lang.Enum<TextColor>