Package net.minecraft.text
Class NbtText.BlockNbtText
java.lang.Object
net.minecraft.text.BaseText
net.minecraft.text.NbtText
net.minecraft.text.NbtText.BlockNbtText
- All Implemented Interfaces:
com.mojang.brigadier.Message,MutableText,ParsableText,StringVisitable,Text
- Enclosing class:
- NbtText
- Mappings:
Namespace Name official oz$aintermediary net/minecraft/class_2574$class_2575named net/minecraft/text/NbtText$BlockNbtText
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.text.NbtText
NbtText.BlockNbtText, NbtText.EntityNbtText, NbtText.StorageNbtTextNested 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
EMPTY, TERMINATE_VISIT -
Constructor Summary
ConstructorsModifierConstructorDescriptionBlockNbtText(String rawPath, boolean rawJson, String rawPos, Optional<Text> separator)privateBlockNbtText(String rawPath, NbtPathArgumentType.NbtPath path, boolean interpret, String rawPos, @Nullable PosArgument pos, Optional<Text> separator) -
Method Summary
Modifier and TypeMethodDescriptioncopy()Copies the text itself, excluding the styles or siblings.booleangetPos()private @Nullable PosArgumentprotected Stream<NbtCompound>toNbt(ServerCommandSource source)toString()Methods inherited from class net.minecraft.text.NbtText
getPath, parse, shouldInterpretMethods inherited from class net.minecraft.text.BaseText
append, asOrderedText, asString, 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
-
rawPos
- Mappings:
Namespace Name Mixin selector official hLoz$a;h:Ljava/lang/String;intermediary field_11780Lnet/minecraft/class_2574$class_2575;field_11780:Ljava/lang/String;named rawPosLnet/minecraft/text/NbtText$BlockNbtText;rawPos:Ljava/lang/String;
-
pos
- Mappings:
Namespace Name Mixin selector official iLoz$a;i:Lew;intermediary field_16408Lnet/minecraft/class_2574$class_2575;field_16408:Lnet/minecraft/class_2267;named posLnet/minecraft/text/NbtText$BlockNbtText;pos:Lnet/minecraft/command/argument/PosArgument;
-
-
Constructor Details
-
BlockNbtText
- Mappings:
Namespace Name Mixin selector official <init>Loz$a;<init>(Ljava/lang/String;ZLjava/lang/String;Ljava/util/Optional;)Vintermediary <init>Lnet/minecraft/class_2574$class_2575;<init>(Ljava/lang/String;ZLjava/lang/String;Ljava/util/Optional;)Vnamed <init>Lnet/minecraft/text/NbtText$BlockNbtText;<init>(Ljava/lang/String;ZLjava/lang/String;Ljava/util/Optional;)V
-
BlockNbtText
private BlockNbtText(String rawPath, @Nullable NbtPathArgumentType.NbtPath path, boolean interpret, String rawPos, @Nullable @Nullable PosArgument pos, Optional<Text> separator)- Mappings:
Namespace Name Mixin selector official <init>Loz$a;<init>(Ljava/lang/String;Leb$g;ZLjava/lang/String;Lew;Ljava/util/Optional;)Vintermediary <init>Lnet/minecraft/class_2574$class_2575;<init>(Ljava/lang/String;Lnet/minecraft/class_2203$class_2209;ZLjava/lang/String;Lnet/minecraft/class_2267;Ljava/util/Optional;)Vnamed <init>Lnet/minecraft/text/NbtText$BlockNbtText;<init>(Ljava/lang/String;Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;ZLjava/lang/String;Lnet/minecraft/command/argument/PosArgument;Ljava/util/Optional;)V
-
-
Method Details
-
parsePos
- Mappings:
Namespace Name Mixin selector official dLoz$a;d(Ljava/lang/String;)Lew;intermediary method_16121Lnet/minecraft/class_2574$class_2575;method_16121(Ljava/lang/String;)Lnet/minecraft/class_2267;named parsePosLnet/minecraft/text/NbtText$BlockNbtText;parsePos(Ljava/lang/String;)Lnet/minecraft/command/argument/PosArgument;
-
getPos
- Mappings:
Namespace Name Mixin selector official jLoz$a;j()Ljava/lang/String;intermediary method_10922Lnet/minecraft/class_2574$class_2575;method_10922()Ljava/lang/String;named getPosLnet/minecraft/text/NbtText$BlockNbtText;getPos()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 kLoz$a;k()Loz$a;intermediary method_10850Lnet/minecraft/class_2574$class_2575;method_10850()Lnet/minecraft/class_2574$class_2575;named copyLnet/minecraft/text/NbtText$BlockNbtText;copy()Lnet/minecraft/text/NbtText$BlockNbtText;
-
toNbt
- Specified by:
toNbtin classNbtText- Mappings:
Namespace Name Mixin selector official aLoz;a(Ldl;)Ljava/util/stream/Stream;intermediary method_10916Lnet/minecraft/class_2574;method_10916(Lnet/minecraft/class_2168;)Ljava/util/stream/Stream;named toNbtLnet/minecraft/text/NbtText;toNbt(Lnet/minecraft/server/command/ServerCommandSource;)Ljava/util/stream/Stream;
-
equals
-
toString
-