public class TextComponentSelector extends TextComponentBase
ITextComponent.Serializer
siblings
Constructor and Description |
---|
TextComponentSelector(java.lang.String selectorIn) |
Modifier and Type | Method and Description |
---|---|
TextComponentSelector |
createCopy()
Creates a copy of this component.
|
boolean |
equals(java.lang.Object p_equals_1_) |
java.lang.String |
getSelector()
Gets the selector of this component, in plain text.
|
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, setStyle
public java.lang.String getSelector()
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 TextComponentSelector createCopy()
public boolean equals(java.lang.Object p_equals_1_)
equals
in class TextComponentBase
public java.lang.String toString()
toString
in class TextComponentBase