crwdns119389:0crwdne119389:0

crwdns119391:0crwdne119391:0

crwdns119393:0crwdne119393:0

Warning

crwdns119395:0:javadoc:crwdnd119395:0:doc:crwdne119395:0

crwdns119397:0crwdne119397:0

crwdns119399:0crwdne119399:0

crwdns119401:0:javadoc:crwdnd119401:0:javadoc:crwdne119401: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);

crwdns119403:0&c&crwdne119403:0

crwdns119405:0crwdne119405:0

crwdns119407:0crwdne119407:0

crwdns119409:0:javadoc:crwdne119409:0

Text text = Text.of(TextColors.RED, TextStyles.UNDERLINE, "Hello World!");
String legacyText = TextSerializers.LEGACY_FORMATTING_CODE.serialize(text);

crwdns119411:0crwdne119411:0

Tip

crwdns119413:0:javadoc:crwdnd119413:0:javadoc:crwdne119413:0