public abstract class ChatComponentStyle extends java.lang.Object implements IChatComponent
IChatComponent.Serializer| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<IChatComponent> |
siblings |
| Constructor and Description |
|---|
ChatComponentStyle() |
| Modifier and Type | Method and Description |
|---|---|
IChatComponent |
appendSibling(IChatComponent component)
Appends the given component to the end of this one.
|
IChatComponent |
appendText(java.lang.String text)
Appends the given text to the end of this component.
|
static java.util.Iterator<IChatComponent> |
createDeepCopyIterator(java.lang.Iterable<IChatComponent> components) |
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<IChatComponent> |
getSiblings() |
java.lang.String |
getUnformattedText()
Get the text of this component, and all child components, with all special formatting codes removed.
|
int |
hashCode() |
java.util.Iterator<IChatComponent> |
iterator() |
IChatComponent |
setChatStyle(ChatStyle style) |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcreateCopy, getUnformattedTextForChatprotected java.util.List<IChatComponent> siblings
public IChatComponent appendSibling(IChatComponent component)
appendSibling in interface IChatComponentpublic java.util.List<IChatComponent> getSiblings()
getSiblings in interface IChatComponentpublic IChatComponent appendText(java.lang.String text)
appendText in interface IChatComponentpublic IChatComponent setChatStyle(ChatStyle style)
setChatStyle in interface IChatComponentpublic ChatStyle getChatStyle()
getChatStyle in interface IChatComponentpublic java.util.Iterator<IChatComponent> iterator()
iterator in interface java.lang.Iterable<IChatComponent>public final java.lang.String getUnformattedText()
getUnformattedText in interface IChatComponentpublic final java.lang.String getFormattedText()
getFormattedText in interface IChatComponentpublic static java.util.Iterator<IChatComponent> createDeepCopyIterator(java.lang.Iterable<IChatComponent> components)
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