Package net.minecraft.text
Class LiteralText
java.lang.Object
net.minecraft.text.BaseText
net.minecraft.text.LiteralText
- All Implemented Interfaces:
com.mojang.brigadier.Message,MutableText,StringVisitable,Text
public class LiteralText extends BaseText
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.text.StringVisitable
StringVisitable.StyledVisitor<T>, StringVisitable.Visitor<T>Nested classes/interfaces inherited from interface net.minecraft.text.Text
Text.Serializer -
Field Summary
Fields inherited from interface net.minecraft.text.StringVisitable
TERMINATE_VISIT -
Constructor Summary
Constructors Constructor Description LiteralText(String string) -
Method Summary
Modifier and Type Method Description StringasString()Returns the string representation of this text itself, excluding siblings.LiteralTextcopy()Copies the text itself, excluding the styles or siblings.booleanequals(Object obj)StringgetRawString()StringtoString()Methods inherited from class net.minecraft.text.BaseText
append, asOrderedText, getSiblings, getStyle, hashCode, setStyle, shallowCopyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
EMPTY
-
string
-
-
Constructor Details
-
LiteralText
-
-
Method Details
-
getRawString
-
asString
Returns the string representation of this text itself, excluding siblings. -
copy
Description copied from interface:TextCopies the text itself, excluding the styles or siblings. -
equals
-
toString
-