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 String
asString()
Returns the string representation of this text itself, excluding siblings.LiteralText
copy()
Copies the text itself, excluding the styles or siblings.boolean
equals(Object obj)
String
getRawString()
String
toString()
Methods inherited from class net.minecraft.text.BaseText
append, asOrderedText, getSiblings, getStyle, hashCode, setStyle, shallowCopy
Methods 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:Text
Copies the text itself, excluding the styles or siblings. -
equals
-
toString
-