public class StringTextComponent extends TextComponent
ITextComponent.Serializer
ITextProperties.IStyledTextAcceptor<T>, ITextProperties.ITextAcceptor<T>
Modifier and Type | Field and Description |
---|---|
static ITextComponent |
EMPTY |
private java.lang.String |
text |
siblings
STOP_ITERATION
Constructor and Description |
---|
StringTextComponent(java.lang.String p_i45159_1_) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object p_equals_1_) |
java.lang.String |
getContents() |
java.lang.String |
getText() |
StringTextComponent |
plainCopy() |
java.lang.String |
toString() |
append, copy, getSiblings, getStyle, getVisualOrderText, hashCode, setStyle
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
append, withStyle, withStyle, withStyle, withStyle
getString, getString, nullToEmpty, visit, visit, visitSelf, visitSelf
composite, composite, of, of
public static final ITextComponent EMPTY
private final java.lang.String text
public java.lang.String getText()
public java.lang.String getContents()
getContents
in interface ITextComponent
getContents
in class TextComponent
public StringTextComponent plainCopy()
plainCopy
in interface ITextComponent
plainCopy
in class TextComponent
public boolean equals(java.lang.Object p_equals_1_)
equals
in class TextComponent
public java.lang.String toString()
toString
in class TextComponent