public abstract class MixinText extends Object implements IMixinText
Modifier and Type | Field and Description |
---|---|
protected ImmutableList<org.spongepowered.api.text.Text> |
children |
protected Optional<org.spongepowered.api.text.action.ClickAction<?>> |
clickAction |
protected org.spongepowered.api.text.format.TextFormat |
format |
protected Optional<org.spongepowered.api.text.action.HoverAction<?>> |
hoverAction |
protected Optional<org.spongepowered.api.text.action.ShiftClickAction<?>> |
shiftClickAction |
Constructor and Description |
---|
MixinText() |
Modifier and Type | Method and Description |
---|---|
protected net.minecraft.util.ChatComponentStyle |
createComponent(Locale locale) |
String |
getLegacyFormatting() |
net.minecraft.util.IChatComponent |
toComponent(Locale locale) |
String |
toJson(Locale locale) |
String |
toLegacy(char code,
Locale locale) |
String |
toPlain(Locale locale) |
protected org.spongepowered.api.text.format.TextFormat format
protected ImmutableList<org.spongepowered.api.text.Text> children
protected Optional<org.spongepowered.api.text.action.ClickAction<?>> clickAction
protected Optional<org.spongepowered.api.text.action.HoverAction<?>> hoverAction
protected Optional<org.spongepowered.api.text.action.ShiftClickAction<?>> shiftClickAction
protected net.minecraft.util.ChatComponentStyle createComponent(Locale locale)
public net.minecraft.util.IChatComponent toComponent(Locale locale)
toComponent
in interface IMixinText
public String toPlain(Locale locale)
toPlain
in interface IMixinText
public String toJson(Locale locale)
toJson
in interface IMixinText
public String getLegacyFormatting()
getLegacyFormatting
in interface IMixinText
public String toLegacy(char code, Locale locale)
toLegacy
in interface IMixinText