public class LegacyTextRepresentation extends Object implements org.spongepowered.api.text.TextRepresentation
Modifier and Type | Field and Description |
---|---|
static LegacyTextRepresentation |
DEFAULT_CHAR_INSTANCE |
Constructor and Description |
---|
LegacyTextRepresentation(char legacyChar) |
Modifier and Type | Method and Description |
---|---|
org.spongepowered.api.text.Text |
from(String input) |
org.spongepowered.api.text.Text |
fromUnchecked(String input) |
static String |
replace(String text,
char from,
char to) |
static String |
strip(String text,
char code) |
static String |
strip(String text,
char code,
boolean all) |
String |
to(org.spongepowered.api.text.Text text) |
String |
to(org.spongepowered.api.text.Text text,
Locale locale) |
public static final LegacyTextRepresentation DEFAULT_CHAR_INSTANCE
public String to(org.spongepowered.api.text.Text text)
to
in interface org.spongepowered.api.text.TextRepresentation
public String to(org.spongepowered.api.text.Text text, Locale locale)
to
in interface org.spongepowered.api.text.TextRepresentation
public org.spongepowered.api.text.Text from(String input) throws org.spongepowered.api.util.TextMessageException
from
in interface org.spongepowered.api.text.TextRepresentation
org.spongepowered.api.util.TextMessageException
public org.spongepowered.api.text.Text fromUnchecked(String input)
fromUnchecked
in interface org.spongepowered.api.text.TextRepresentation