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
- Mappings:
Namespace Name official ovintermediary net/minecraft/class_2585named net/minecraft/text/LiteralText
-
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
- Mappings:
Namespace Name Mixin selector official dLov;d:Loi;intermediary field_24366Lnet/minecraft/class_2585;field_24366:Lnet/minecraft/class_2561;named EMPTYLnet/minecraft/text/LiteralText;EMPTY:Lnet/minecraft/text/Text;
-
string
- Mappings:
Namespace Name Mixin selector official eLov;e:Ljava/lang/String;intermediary field_11862Lnet/minecraft/class_2585;field_11862:Ljava/lang/String;named stringLnet/minecraft/text/LiteralText;string:Ljava/lang/String;
-
-
Constructor Details
-
LiteralText
- Mappings:
Namespace Name Mixin selector official <init>Lov;<init>(Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_2585;<init>(Ljava/lang/String;)Vnamed <init>Lnet/minecraft/text/LiteralText;<init>(Ljava/lang/String;)V
-
-
Method Details
-
getRawString
- Mappings:
Namespace Name Mixin selector official hLov;h()Ljava/lang/String;intermediary method_10993Lnet/minecraft/class_2585;method_10993()Ljava/lang/String;named getRawStringLnet/minecraft/text/LiteralText;getRawString()Ljava/lang/String;
-
asString
Returns the string representation of this text itself, excluding siblings.- Specified by:
asStringin interfaceText- Overrides:
asStringin classBaseText- Mappings:
Namespace Name Mixin selector official aLoi;a()Ljava/lang/String;intermediary method_10851Lnet/minecraft/class_2561;method_10851()Ljava/lang/String;named asStringLnet/minecraft/text/Text;asString()Ljava/lang/String;
-
copy
Description copied from interface:TextCopies the text itself, excluding the styles or siblings.- Specified by:
copyin interfaceText- Specified by:
copyin classBaseText- Mappings:
Namespace Name Mixin selector official iLov;i()Lov;intermediary method_10992Lnet/minecraft/class_2585;method_10992()Lnet/minecraft/class_2585;named copyLnet/minecraft/text/LiteralText;copy()Lnet/minecraft/text/LiteralText;
-
equals
-
toString
-