public enum TextFormat extends Enum<TextFormat>
| Enum Constant and Description |
|---|
AQUA
Colors the next section of text aqua.
|
BLACK
Colors the next section of text black.
|
BLUE
Colors the next section of text blue.
|
BOLD
Makes the following section of text bold.
|
DARK_AQUA
Colors the next section of text dark blue.
|
DARK_BLUE
Colors the next section of text dark blue.
|
DARK_GRAY
Colors the next section of text dark gray.
|
DARK_GREEN
Colors the next section of text dark green.
|
DARK_PURPLE
Colors the next section of text dark purple.
|
DARK_RED
Colors the next section of text dark red.
|
GOLD
Colors the next section of text gold.
|
GRAY
Colors the next section of text gray.
|
GREEN
Colors the next section of text green.
|
ITALIC
Italicizes the following section of text.
|
LIGHT_PURPLE
Colors the next section of text light purple.
|
OBFUSCATED
Makes the following section of text obfuscated.
|
RED
Colors the next section of text red.
|
RESET
Resets all previous chat formatting, including formatting and styling.
|
STRIKETHROUGH
Strikes a line through the following line of text.
|
UNDERLINE
Underlines the following section of text.
|
WHITE
Colors the next section of text white.
|
YELLOW
Colors the next section of text yellow.
|
| Modifier and Type | Field and Description |
|---|---|
static char |
AMPERSAND_CHAR |
static char |
FORMAT_CHAR |
| Modifier and Type | Method and Description |
|---|---|
static String |
colorize(String string) |
static String |
decolorize(String string) |
char |
getId() |
boolean |
isStyling() |
static String |
removeFormatting(String string) |
String |
toString() |
static TextFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextFormat BLACK
public static final TextFormat DARK_BLUE
public static final TextFormat DARK_GREEN
public static final TextFormat DARK_AQUA
public static final TextFormat DARK_RED
public static final TextFormat DARK_PURPLE
public static final TextFormat GOLD
public static final TextFormat GRAY
public static final TextFormat DARK_GRAY
public static final TextFormat BLUE
public static final TextFormat GREEN
public static final TextFormat AQUA
public static final TextFormat RED
public static final TextFormat LIGHT_PURPLE
public static final TextFormat YELLOW
public static final TextFormat WHITE
public static final TextFormat OBFUSCATED
public static final TextFormat BOLD
public static final TextFormat STRIKETHROUGH
public static final TextFormat UNDERLINE
public static final TextFormat ITALIC
public static final TextFormat RESET
public static final char FORMAT_CHAR
public static final char AMPERSAND_CHAR
public static TextFormat[] values()
for (TextFormat c : TextFormat.values()) System.out.println(c);
public static TextFormat 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 nullpublic char getId()
public boolean isStyling()
public String toString()
toString in class Enum<TextFormat>Copyright © 2017–2019 NukkitX. All rights reserved.