public class ChatComponentTranslation extends ChatComponentStyle
IChatComponent.Serializer
Modifier and Type | Field and Description |
---|---|
static java.util.regex.Pattern |
stringVariablePattern |
siblings
Constructor and Description |
---|
ChatComponentTranslation(java.lang.String translationKey,
java.lang.Object... args) |
Modifier and Type | Method and Description |
---|---|
ChatComponentTranslation |
createCopy() |
boolean |
equals(java.lang.Object p_equals_1_) |
java.lang.Object[] |
getFormatArgs() |
java.lang.String |
getKey() |
java.lang.String |
getUnformattedTextForChat() |
int |
hashCode() |
protected void |
initializeFromFormat(java.lang.String format) |
java.util.Iterator |
iterator() |
IChatComponent |
setChatStyle(ChatStyle style) |
java.lang.String |
toString() |
appendSibling, appendText, createDeepCopyIterator, getChatStyle, getFormattedText, getSiblings, getUnformattedText
public static final java.util.regex.Pattern stringVariablePattern
public ChatComponentTranslation(java.lang.String translationKey, java.lang.Object... args)
protected void initializeFromFormat(java.lang.String format)
public IChatComponent setChatStyle(ChatStyle style)
setChatStyle
in interface IChatComponent
setChatStyle
in class ChatComponentStyle
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in class ChatComponentStyle
public java.lang.String getUnformattedTextForChat()
public ChatComponentTranslation createCopy()
public boolean equals(java.lang.Object p_equals_1_)
equals
in class ChatComponentStyle
public int hashCode()
hashCode
in class ChatComponentStyle
public java.lang.String toString()
toString
in class ChatComponentStyle
public java.lang.String getKey()
public java.lang.Object[] getFormatArgs()