crwdns130157:0crwdne130157:0

crwdns130159:0crwdne130159:0

crwdns130161:0crwdne130161:0

Warning

crwdns130163:0:javadoc:crwdnd130163:0:doc:crwdnd130163:0:doc:crwdne130163:0

crwdns130165:0crwdne130165:0

crwdns130167:0crwdne130167:0

crwdns130169:0:javadoc:crwdnd130169:0:javadoc:crwdne130169: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);

crwdns130171:0&c&crwdne130171:0

crwdns130173:0crwdne130173:0

crwdns130175:0crwdne130175:0

crwdns130177:0:javadoc:crwdne130177:0

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

crwdns130179:0crwdne130179:0

Tip

crwdns130181:0:javadoc:crwdnd130181:0:javadoc:crwdne130181:0