public class TextComponentString extends TextComponentBase
ITextComponent.Serializersiblings| Constructor and Description |
|---|
TextComponentString(java.lang.String msg) |
| Modifier and Type | Method and Description |
|---|---|
TextComponentString |
createCopy()
Creates a copy of this component.
|
boolean |
equals(java.lang.Object p_equals_1_) |
java.lang.String |
getText()
Gets the text value of this component.
|
java.lang.String |
getUnformattedComponentText()
Gets the raw content of this component (but not its sibling components), without any formatting codes.
|
java.lang.String |
toString() |
appendSibling, appendText, createDeepCopyIterator, getFormattedText, getSiblings, getStyle, getUnformattedText, hashCode, iterator, setStylepublic java.lang.String getText()
text property, and only should be used
when dealing specifically with instances of TextComponentString - for other purposes, use getUnformattedComponentText().public java.lang.String getUnformattedComponentText()
TextComponentString, but it's the translated text for a TextComponentTranslation and it's the score value for a TextComponentScore.public TextComponentString createCopy()
public boolean equals(java.lang.Object p_equals_1_)
equals in class TextComponentBasepublic java.lang.String toString()
toString in class TextComponentBase