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 | Method and Description |
|---|---|
char |
legacy()
Deprecated.
|
@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.
|
@SerializedName(value="black") public static final TextColor BLACK
@SerializedName(value="dark_blue") public static final TextColor DARK_BLUE
@SerializedName(value="dark_green") public static final TextColor DARK_GREEN
@SerializedName(value="dark_aqua") public static final TextColor DARK_AQUA
@SerializedName(value="dark_red") public static final TextColor DARK_RED
@SerializedName(value="dark_purple") public static final TextColor DARK_PURPLE
@SerializedName(value="gold") public static final TextColor GOLD
@SerializedName(value="gray") public static final TextColor GRAY
@SerializedName(value="dark_gray") public static final TextColor DARK_GRAY
@SerializedName(value="blue") public static final TextColor BLUE
@SerializedName(value="green") public static final TextColor GREEN
@SerializedName(value="aqua") public static final TextColor AQUA
@SerializedName(value="red") public static final TextColor RED
@SerializedName(value="light_purple") public static final TextColor LIGHT_PURPLE
@SerializedName(value="yellow") public static final TextColor YELLOW
@SerializedName(value="white") 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 null@Deprecated public char legacy()
TextFormatlegacy in interface TextFormatpublic @NonNull java.lang.String toString()
toString in class java.lang.Enum<TextColor>