Raw string to be parsed.
Construct a Minecraft string from a string of text, can include color and style codes.
The text to parse.
Test the length against the Java string limit instead of Minecraft's.
The segments of the Minecraft string.
Clean stripped coloring & styling codes text
Static Readonly colorStatic Readonly javaStatic Readonly mcStatic Readonly regexRegular expression to match Minecraft color & style codes.
Static Readonly styleObject containing the style codes and their corresponding style.
Readonly k: "obfuscated"Readonly l: "bold"Readonly m: "strikethrough"Readonly n: "underlined"Readonly o: "italic"Readonly r: "reset"Static Readonly styleStatic emptyStatic boldApply the bold style to the string.
A new Minecraft string with bold text.
The text to bold.
Static italicApply the italic style to the string.
A new Minecraft string with italicized text.
The text to italicize.
Static obfuscatedApply the obfuscated style to the string.
A new Minecraft string with obfuscated text.
The text to obfuscate.
Static strikethroughApply the strikethrough style to the string.
A new Minecraft string with strikethrough text.
The text to strikethrough.
Static underlinedApply the underline style to the string.
A new Minecraft string with underlined text.
The text to underline.
Generated using TypeDoc
Minecraft exportable string.