public enum ColorHandling extends java.lang.Enum<ColorHandling>
StringFormat.| Enum Constant and Description |
|---|
FORMATTING
Treat colors like regular formatting.
Other formattings like bold, italic, etc. |
RESET
Treat colors like a reset for all formattings (like bold, italic, etc.).
This is the default behavior for Minecraft. |
| Modifier and Type | Method and Description |
|---|---|
static ColorHandling |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ColorHandling[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColorHandling RESET
public static final ColorHandling FORMATTING
public static ColorHandling[] values()
for (ColorHandling c : ColorHandling.values()) System.out.println(c);
public static ColorHandling 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