Enum Constant and Description |
---|
AQUA |
BLACK |
BLUE |
BOLD |
DARK_AQUA |
DARK_BLUE |
DARK_GRAY |
DARK_GREEN |
DARK_PURPLE |
DARK_RED |
GOLD |
GRAY |
GREEN |
ITALIC |
LIGHT_PURPLE |
MAGIC |
RED |
RESET |
STRIKETHROUGH |
UNDERLINE |
WHITE |
YELLOW |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
code |
static char[] |
COLOR_CHARS |
static char |
COLOR_CODE_CHAR |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
replaceAlternateColorChar(char colorChar,
java.lang.String string)
Replaces the specified character with the real color character in a string (if it returns a valid color)
|
static java.lang.String |
replaceAlternateColorChar(java.lang.String string)
Replaces '&' with the real color character in a string (if it returns a valid color)
Used to simplify coremodding essentials color codes into the default FontRenderer
|
java.lang.String |
toString() |
static Colors |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Colors[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Colors BLACK
public static final Colors DARK_BLUE
public static final Colors DARK_GREEN
public static final Colors DARK_AQUA
public static final Colors DARK_RED
public static final Colors DARK_PURPLE
public static final Colors GOLD
public static final Colors GRAY
public static final Colors DARK_GRAY
public static final Colors BLUE
public static final Colors GREEN
public static final Colors AQUA
public static final Colors RED
public static final Colors LIGHT_PURPLE
public static final Colors YELLOW
public static final Colors WHITE
public static final Colors MAGIC
public static final Colors BOLD
public static final Colors STRIKETHROUGH
public static final Colors UNDERLINE
public static final Colors ITALIC
public static final Colors RESET
public java.lang.String code
public static final char[] COLOR_CHARS
public static final char COLOR_CODE_CHAR
public static Colors[] values()
for (Colors c : Colors.values()) System.out.println(c);
public static Colors 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 toString()
toString
in class java.lang.Enum<Colors>
public static java.lang.String replaceAlternateColorChar(char colorChar, java.lang.String string)
colorChar
- The alternate color characterstring
- The stringpublic static java.lang.String replaceAlternateColorChar(java.lang.String string)
string
- The string