public enum ANSIColor extends Enum<ANSIColor>
| Enum Constant and Description |
|---|
B_BLACK |
B_BLUE |
B_CYAN |
B_GREEN |
B_MAGENTA |
B_RED |
B_WHITE |
B_YELLOW |
BLACK |
BLUE |
CYAN |
GREEN |
MAGENTA |
RED |
RESET |
WHITE |
YELLOW |
| Modifier and Type | Method and Description |
|---|---|
static ANSIColor |
fromANSI(String code) |
static ANSIColor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ANSIColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ANSIColor BLACK
public static final ANSIColor RED
public static final ANSIColor GREEN
public static final ANSIColor YELLOW
public static final ANSIColor BLUE
public static final ANSIColor MAGENTA
public static final ANSIColor CYAN
public static final ANSIColor WHITE
public static final ANSIColor B_BLACK
public static final ANSIColor B_RED
public static final ANSIColor B_GREEN
public static final ANSIColor B_YELLOW
public static final ANSIColor B_BLUE
public static final ANSIColor B_MAGENTA
public static final ANSIColor B_CYAN
public static final ANSIColor B_WHITE
public static final ANSIColor RESET
public static ANSIColor[] values()
for (ANSIColor c : ANSIColor.values()) System.out.println(c);
public static ANSIColor valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2021 GeyserMC. All rights reserved.