public abstract class ChatComponentStyle extends java.lang.Object implements IChatComponent
IChatComponent.Serializer| Modifier and Type | Field and Description |
|---|---|
protected java.util.List |
siblings
The later siblings of this component.
|
| Constructor and Description |
|---|
ChatComponentStyle() |
| Modifier and Type | Method and Description |
|---|---|
IChatComponent |
appendSibling(IChatComponent p_150257_1_)
Appends the given component to the end of this one.
|
IChatComponent |
appendText(java.lang.String p_150258_1_)
Appends the given text to the end of this component.
|
static java.util.Iterator |
createDeepCopyIterator(java.lang.Iterable p_150262_0_)
Creates an iterator that iterates over the given components, returning deep copies of each component in turn so
that the properties of the returned objects will remain externally consistent after being returned.
|
boolean |
equals(java.lang.Object p_equals_1_) |
ChatStyle |
getChatStyle() |
java.lang.String |
getFormattedText()
Gets the text of this component, with formatting codes added for rendering.
|
java.util.List |
getSiblings()
Gets the sibling components of this one.
|
java.lang.String |
getUnformattedText()
Gets the text of this component, without any special formatting codes added.
|
int |
hashCode() |
java.util.Iterator |
iterator() |
IChatComponent |
setChatStyle(ChatStyle p_150255_1_) |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcreateCopy, getUnformattedTextForChatprotected java.util.List siblings
public IChatComponent appendSibling(IChatComponent p_150257_1_)
appendSibling in interface IChatComponentpublic java.util.List getSiblings()
getSiblings in interface IChatComponentpublic IChatComponent appendText(java.lang.String p_150258_1_)
appendText in interface IChatComponentpublic IChatComponent setChatStyle(ChatStyle p_150255_1_)
setChatStyle in interface IChatComponentpublic ChatStyle getChatStyle()
getChatStyle in interface IChatComponentpublic java.util.Iterator iterator()
iterator in interface java.lang.Iterablepublic final java.lang.String getUnformattedText()
getUnformattedText in interface IChatComponentpublic final java.lang.String getFormattedText()
getFormattedText in interface IChatComponentpublic static java.util.Iterator createDeepCopyIterator(java.lang.Iterable p_150262_0_)
public boolean equals(java.lang.Object p_equals_1_)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object