Package dev.redcoke.mcserverping.utils
Class TextComponentFormatter
- java.lang.Object
-
- dev.redcoke.mcserverping.utils.TextComponentFormatter
-
public class TextComponentFormatter extends Object
Utility class for formatting Minecraft text components.
-
-
Field Summary
Fields Modifier and Type Field Description static StringBOLDprotected static Map<String,String>COLOR_CODESstatic StringFORMATTING_CHARstatic StringITALICstatic StringOBFUSCATEDstatic StringRESETstatic StringSTRIKETHROUGHstatic StringUNDERLINE
-
Constructor Summary
Constructors Constructor Description TextComponentFormatter()
-
-
-
Field Detail
-
FORMATTING_CHAR
public static final String FORMATTING_CHAR
- See Also:
- Constant Field Values
-
RESET
public static final String RESET
- See Also:
- Constant Field Values
-
BOLD
public static final String BOLD
- See Also:
- Constant Field Values
-
OBFUSCATED
public static final String OBFUSCATED
- See Also:
- Constant Field Values
-
STRIKETHROUGH
public static final String STRIKETHROUGH
- See Also:
- Constant Field Values
-
UNDERLINE
public static final String UNDERLINE
- See Also:
- Constant Field Values
-
ITALIC
public static final String ITALIC
- See Also:
- Constant Field Values
-
-
Method Detail
-
toLegacyText
public static String toLegacyText(com.google.gson.JsonArray text)
-
-