crwdns149411:0crwdne149411:0
crwdns149413:0crwdne149413:0
crwdns149415:0crwdne149415:0
Warning
crwdns149417:0:javadoc:crwdnd149417:0:doc:crwdnd149417:0:doc:crwdne149417:0
crwdns149419:0crwdne149419:0
crwdns149421:0crwdne149421:0
crwdns149423:0:javadoc:crwdnd149423:0:javadoc:crwdne149423:0
import org.spongepowered.api.text.Text;
import org.spongepowered.api.text.format.TextColors;
import org.spongepowered.api.text.format.TextStyles;
import org.spongepowered.api.text.serializer.TextSerializers;
Text text = Text.of(TextColors.RED, TextStyles.UNDERLINE, "Hello World!");
String ampersandFormattedText = TextSerializers.FORMATTING_CODE.serialize(text);
crwdns149425:0&c&crwdne149425:0
crwdns149427:0crwdne149427:0
crwdns149429:0crwdne149429:0
crwdns149431:0:javadoc:crwdne149431:0
Text text = Text.of(TextColors.RED, TextStyles.UNDERLINE, "Hello World!");
String legacyText = TextSerializers.LEGACY_FORMATTING_CODE.serialize(text);
crwdns149433:0crwdne149433:0
Tip
crwdns149435:0:javadoc:crwdnd149435:0:javadoc:crwdne149435:0