public interface IChatComponent extends java.lang.Iterable<IChatComponent>
Modifier and Type | Interface and Description |
---|---|
static class |
IChatComponent.Serializer |
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.
|
IChatComponent |
createCopy()
Creates a copy of this component.
|
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.
|
java.lang.String |
getUnformattedTextForChat()
Gets the text of this component, without any special formatting codes added, for chat.
|
IChatComponent |
setChatStyle(ChatStyle style) |
IChatComponent setChatStyle(ChatStyle style)
ChatStyle getChatStyle()
IChatComponent appendText(java.lang.String text)
IChatComponent appendSibling(IChatComponent component)
java.lang.String getUnformattedTextForChat()
java.lang.String getUnformattedText()
java.lang.String getFormattedText()
java.util.List<IChatComponent> getSiblings()
IChatComponent createCopy()