Package net.minecraft.util.text
Class StringTextComponent
- java.lang.Object
-
- net.minecraft.util.text.TextComponent
-
- net.minecraft.util.text.StringTextComponent
-
- All Implemented Interfaces:
com.mojang.brigadier.Message
,IFormattableTextComponent
,ITextComponent
,ITextProperties
public class StringTextComponent extends TextComponent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.util.text.ITextComponent
ITextComponent.Serializer
-
Nested classes/interfaces inherited from interface net.minecraft.util.text.ITextProperties
ITextProperties.IStyledTextAcceptor<T>, ITextProperties.ITextAcceptor<T>
-
-
Field Summary
Fields Modifier and Type Field Description static ITextComponent
EMPTY
private java.lang.String
text
-
Fields inherited from class net.minecraft.util.text.TextComponent
siblings
-
Fields inherited from interface net.minecraft.util.text.ITextProperties
STOP_ITERATION
-
-
Constructor Summary
Constructors Constructor Description StringTextComponent(java.lang.String p_i45159_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object p_equals_1_)
java.lang.String
getContents()
java.lang.String
getText()
StringTextComponent
plainCopy()
java.lang.String
toString()
-
Methods inherited from class net.minecraft.util.text.TextComponent
append, copy, getSiblings, getStyle, getVisualOrderText, hashCode, setStyle
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
EMPTY
public static final ITextComponent EMPTY
-
text
private final java.lang.String text
-
-
Method Detail
-
getText
public java.lang.String getText()
-
getContents
public java.lang.String getContents()
- Specified by:
getContents
in interfaceITextComponent
- Overrides:
getContents
in classTextComponent
-
plainCopy
public StringTextComponent plainCopy()
- Specified by:
plainCopy
in interfaceITextComponent
- Specified by:
plainCopy
in classTextComponent
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classTextComponent
-
toString
public java.lang.String toString()
- Overrides:
toString
in classTextComponent
-
-