public final class SpongeTexts extends Object
Modifier and Type | Field and Description |
---|---|
static char |
COLOR_CHAR |
Modifier and Type | Method and Description |
---|---|
static org.spongepowered.api.text.Text |
fixActionBarFormatting(org.spongepowered.api.text.Text text) |
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)