crwdns119365:0crwdne119365:0
crwdns119367:0crwdne119367:0
Tip
crwdns119369:0:doc:crwdne119369:0
crwdns119371:0crwdne119371:0
{
"underlined":true,
"color":"red",
"text":"Hello World!"
}
crwdns119373:0crwdne119373: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 jsonText = TextSerializers.JSON.serialize(text);