public final class SpongeTexts extends Object
Modifier and Type | Field and Description |
---|---|
static char |
COLOR_CHAR |
Modifier and Type | Method and Description |
---|---|
static List<String> |
asJson(List<org.spongepowered.api.text.Text> list) |
static net.minecraft.nbt.NBTTagList |
asLegacy(List<org.spongepowered.api.text.Text> list) |
static org.spongepowered.api.text.Text |
fixActionBarFormatting(org.spongepowered.api.text.Text text) |
static List<org.spongepowered.api.text.Text> |
fromJson(List<String> json) |
static List<org.spongepowered.api.text.Text> |
fromLegacy(net.minecraft.nbt.NBTTagList legacy) |
static Locale |
getDefaultLocale() |
static net.minecraft.util.IChatComponent |
toComponent(org.spongepowered.api.text.Text text) |
static net.minecraft.util.IChatComponent |
toComponent(org.spongepowered.api.text.Text text,
Locale locale) |
static String |
toLegacy(net.minecraft.util.IChatComponent component) |
static String |
toLegacy(net.minecraft.util.IChatComponent component,
char code) |
static String |
toPlain(net.minecraft.util.IChatComponent component) |
static org.spongepowered.api.text.Text |
toText(net.minecraft.util.IChatComponent component) |
public static final char COLOR_CHAR
public static Locale getDefaultLocale()
public static net.minecraft.util.IChatComponent toComponent(org.spongepowered.api.text.Text text)
public static net.minecraft.util.IChatComponent toComponent(org.spongepowered.api.text.Text text, Locale locale)
public static org.spongepowered.api.text.Text toText(net.minecraft.util.IChatComponent component)
public static String toPlain(net.minecraft.util.IChatComponent component)
public static String toLegacy(net.minecraft.util.IChatComponent component)
public static String toLegacy(net.minecraft.util.IChatComponent component, char code)
public static org.spongepowered.api.text.Text fixActionBarFormatting(org.spongepowered.api.text.Text text)
public static List<org.spongepowered.api.text.Text> fromLegacy(net.minecraft.nbt.NBTTagList legacy)
public static net.minecraft.nbt.NBTTagList asLegacy(List<org.spongepowered.api.text.Text> list)