crwdns149437:0crwdne149437:0
crwdns149439:0crwdne149439:0
crwdns149441:0crwdne149441:0 |
crwdns149443:0crwdne149443:0 |
crwdns149445:0crwdne149445:0 |
---|---|---|
crwdns149447:0crwdne149447:0 |
crwdns149449:0crwdne149449:0 |
crwdns149451:0crwdne149451:0 |
crwdns149453:0crwdne149453:0 |
crwdns149455:0crwdne149455:0 |
|
crwdns149457:0crwdne149457:0 |
crwdns149459:0crwdne149459:0 |
crwdns149461:0crwdne149461:0 |
crwdns149463:0crwdne149463:0 |
crwdns149465:0crwdne149465:0 |
|
crwdns149467:0crwdne149467:0 |
crwdns149469:0crwdne149469:0 |
|
crwdns149471:0crwdne149471:0 |
crwdns149473:0crwdne149473:0 |
|
crwdns149475:0crwdne149475:0 |
crwdns149477:0crwdne149477:0 |
crwdns149479:0crwdne149479:0 |
crwdns149481:0crwdne149481:0 |
crwdns149483:0crwdne149483:0 |
crwdns149485:0crwdne149485:0 |
crwdns149487:0crwdne149487:0 |
crwdns149489:0crwdne149489:0 |
crwdns149491:0crwdne149491:0
<c n="red">
<u>Hello World!</u>
</c>
crwdns149493:0crwdne149493: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 xmlText = TextSerializers.TEXT_XML.serialize(text);