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
- Mappings:
Namespace Name official pfintermediary 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
FieldsFields inherited from interface net.minecraft.text.StringVisitable
TERMINATE_VISIT -
Constructor Summary
Constructors -
Method Summary
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, waitMethods inherited from interface net.minecraft.text.MutableText
append, fillStyle, formatted, formatted, styledMethods inherited from interface net.minecraft.text.Text
asTruncatedString, getString, getWithStyle, visit, visit, visitSelf, visitSelf
-
Field Details
-
EMPTY
- Mappings:
Namespace Name Mixin selector official dLpf;d:Los;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 eLpf;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>Lpf;<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 hLpf;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 aLos;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 iLpf;i()Lpf;intermediary method_10992Lnet/minecraft/class_2585;method_10992()Lnet/minecraft/class_2585;named copyLnet/minecraft/text/LiteralText;copy()Lnet/minecraft/text/LiteralText;
-
equals
-
toString
-