Package net.minecraft.text
Class NbtText
java.lang.Object
net.minecraft.text.BaseText
net.minecraft.text.NbtText
- All Implemented Interfaces:
com.mojang.brigadier.Message,MutableText,ParsableText,StringVisitable,Text
- Direct Known Subclasses:
NbtText.BlockNbtText,NbtText.EntityNbtText,NbtText.StorageNbtText
- Mappings:
Namespace Name official qjintermediary net/minecraft/class_2574named net/minecraft/text/NbtText
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classNested 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
FieldsModifier and TypeFieldDescriptionprotected final booleanprivate static final org.slf4j.Loggerprotected final NbtPathArgumentType.NbtPathprotected final StringFields inherited from interface net.minecraft.text.StringVisitable
EMPTY, TERMINATE_VISIT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPath()parse(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) private static NbtPathArgumentType.NbtPathbooleanprotected abstract Stream<NbtCompound>toNbt(ServerCommandSource source) Methods inherited from class net.minecraft.text.BaseText
append, asOrderedText, asString, copy, equals, getSiblings, getStyle, hashCode, setStyle, shallowCopy, toStringMethods 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
-
LOGGER
private static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official hLqj;h:Lorg/slf4j/Logger;intermediary field_11777Lnet/minecraft/class_2574;field_11777:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/text/NbtText;LOGGER:Lorg/slf4j/Logger;
-
interpret
protected final boolean interpret- Mappings:
Namespace Name Mixin selector official dLqj;d:Zintermediary field_11778Lnet/minecraft/class_2574;field_11778:Znamed interpretLnet/minecraft/text/NbtText;interpret:Z
-
separator
- Mappings:
Namespace Name Mixin selector official eLqj;e:Ljava/util/Optional;intermediary field_33539Lnet/minecraft/class_2574;field_33539:Ljava/util/Optional;named separatorLnet/minecraft/text/NbtText;separator:Ljava/util/Optional;
-
rawPath
- Mappings:
Namespace Name Mixin selector official fLqj;f:Ljava/lang/String;intermediary field_11776Lnet/minecraft/class_2574;field_11776:Ljava/lang/String;named rawPathLnet/minecraft/text/NbtText;rawPath:Ljava/lang/String;
-
path
- Mappings:
Namespace Name Mixin selector official gLqj;g:Lec$g;intermediary field_11779Lnet/minecraft/class_2574;field_11779:Lnet/minecraft/class_2203$class_2209;named pathLnet/minecraft/text/NbtText;path:Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;
-
-
Constructor Details
-
NbtText
- Mappings:
Namespace Name Mixin selector official <init>Lqj;<init>(Ljava/lang/String;ZLjava/util/Optional;)Vintermediary <init>Lnet/minecraft/class_2574;<init>(Ljava/lang/String;ZLjava/util/Optional;)Vnamed <init>Lnet/minecraft/text/NbtText;<init>(Ljava/lang/String;ZLjava/util/Optional;)V
-
NbtText
protected NbtText(String rawPath, @Nullable NbtPathArgumentType.NbtPath path, boolean interpret, Optional<Text> separator) - Mappings:
Namespace Name Mixin selector official <init>Lqj;<init>(Ljava/lang/String;Lec$g;ZLjava/util/Optional;)Vintermediary <init>Lnet/minecraft/class_2574;<init>(Ljava/lang/String;Lnet/minecraft/class_2203$class_2209;ZLjava/util/Optional;)Vnamed <init>Lnet/minecraft/text/NbtText;<init>(Ljava/lang/String;Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;ZLjava/util/Optional;)V
-
-
Method Details
-
parsePath
- Mappings:
Namespace Name Mixin selector official dLqj;d(Ljava/lang/String;)Lec$g;intermediary method_10919Lnet/minecraft/class_2574;method_10919(Ljava/lang/String;)Lnet/minecraft/class_2203$class_2209;named parsePathLnet/minecraft/text/NbtText;parsePath(Ljava/lang/String;)Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;
-
toNbt
protected abstract Stream<NbtCompound> toNbt(ServerCommandSource source) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLqj;a(Ldm;)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;
-
getPath
- Mappings:
Namespace Name Mixin selector official hLqj;h()Ljava/lang/String;intermediary method_10920Lnet/minecraft/class_2574;method_10920()Ljava/lang/String;named getPathLnet/minecraft/text/NbtText;getPath()Ljava/lang/String;
-
shouldInterpret
public boolean shouldInterpret()- Mappings:
Namespace Name Mixin selector official iLqj;i()Zintermediary method_10921Lnet/minecraft/class_2574;method_10921()Znamed shouldInterpretLnet/minecraft/text/NbtText;shouldInterpret()Z
-
parse
public MutableText parse(@Nullable @Nullable ServerCommandSource source, @Nullable @Nullable Entity sender, int depth) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfaceParsableText- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLqe;a(Ldm;Lawy;I)Lqi;intermediary method_10890Lnet/minecraft/class_2566;method_10890(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_5250;named parseLnet/minecraft/text/ParsableText;parse(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/text/MutableText;
-