public class TextComponentTranslation extends TextComponentBase
ITextComponent.Serializer
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<ITextComponent> |
children |
private java.lang.Object[] |
formatArgs |
private java.lang.String |
key |
private long |
lastTranslationUpdateTimeInMilliseconds |
static java.util.regex.Pattern |
STRING_VARIABLE_PATTERN |
private java.lang.Object |
syncLock |
siblings
Constructor and Description |
---|
TextComponentTranslation(java.lang.String translationKey,
java.lang.Object... args) |
Modifier and Type | Method and Description |
---|---|
TextComponentTranslation |
createCopy() |
(package private) void |
ensureInitialized() |
boolean |
equals(java.lang.Object p_equals_1_) |
java.lang.Object[] |
getFormatArgs() |
private ITextComponent |
getFormatArgumentAsComponent(int index) |
java.lang.String |
getKey() |
java.lang.String |
getUnformattedComponentText() |
int |
hashCode() |
protected void |
initializeFromFormat(java.lang.String format) |
java.util.Iterator<ITextComponent> |
iterator() |
ITextComponent |
setStyle(Style style) |
java.lang.String |
toString() |
appendSibling, appendText, createDeepCopyIterator, getFormattedText, getSiblings, getStyle, getUnformattedText
private final java.lang.String key
private final java.lang.Object[] formatArgs
private final java.lang.Object syncLock
private long lastTranslationUpdateTimeInMilliseconds
java.util.List<ITextComponent> children
public static final java.util.regex.Pattern STRING_VARIABLE_PATTERN
public TextComponentTranslation(java.lang.String translationKey, java.lang.Object... args)
void ensureInitialized()
protected void initializeFromFormat(java.lang.String format)
private ITextComponent getFormatArgumentAsComponent(int index)
public ITextComponent setStyle(Style style)
setStyle
in interface ITextComponent
setStyle
in class TextComponentBase
public java.util.Iterator<ITextComponent> iterator()
iterator
in interface java.lang.Iterable<ITextComponent>
iterator
in class TextComponentBase
public java.lang.String getUnformattedComponentText()
public TextComponentTranslation createCopy()
public boolean equals(java.lang.Object p_equals_1_)
equals
in class TextComponentBase
public int hashCode()
hashCode
in class TextComponentBase
public java.lang.String toString()
toString
in class TextComponentBase
public java.lang.String getKey()
public java.lang.Object[] getFormatArgs()