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
public abstract class NbtText extends BaseText implements ParsableText
- Mappings:
Namespace Name official op
intermediary net/minecraft/class_2574
named net/minecraft/text/NbtText
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NbtText.BlockNbtText
static class
NbtText.EntityNbtText
static class
NbtText.StorageNbtText
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 Modifier and Type Field Description protected boolean
interpret
private static Logger
LOGGER
protected NbtPathArgumentType.NbtPath
path
protected String
rawPath
Fields inherited from interface net.minecraft.text.StringVisitable
EMPTY, TERMINATE_VISIT
-
Constructor Summary
Constructors Modifier Constructor Description NbtText(String rawPath, boolean interpret)
protected
NbtText(String rawPath, NbtPathArgumentType.NbtPath path, boolean interpret)
-
Method Summary
Modifier and Type Method Description String
getPath()
MutableText
parse(ServerCommandSource source, Entity sender, int depth)
private static NbtPathArgumentType.NbtPath
parsePath(String rawPath)
boolean
shouldInterpret()
protected abstract Stream<CompoundTag>
toNbt(ServerCommandSource source)
Methods inherited from class net.minecraft.text.BaseText
append, asOrderedText, asString, copy, equals, getSiblings, getStyle, hashCode, setStyle, shallowCopy, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official g
Lop;g:Lorg/apache/logging/log4j/Logger;
intermediary field_11777
Lnet/minecraft/class_2574;field_11777:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/text/NbtText;LOGGER:Lorg/apache/logging/log4j/Logger;
-
interpret
protected final boolean interpret- Mappings:
Namespace Name Mixin selector official d
Lop;d:Z
intermediary field_11778
Lnet/minecraft/class_2574;field_11778:Z
named interpret
Lnet/minecraft/text/NbtText;interpret:Z
-
rawPath
- Mappings:
Namespace Name Mixin selector official e
Lop;e:Ljava/lang/String;
intermediary field_11776
Lnet/minecraft/class_2574;field_11776:Ljava/lang/String;
named rawPath
Lnet/minecraft/text/NbtText;rawPath:Ljava/lang/String;
-
path
- Mappings:
Namespace Name Mixin selector official f
Lop;f:Ldr$g;
intermediary field_11779
Lnet/minecraft/class_2574;field_11779:Lnet/minecraft/class_2203$class_2209;
named path
Lnet/minecraft/text/NbtText;path:Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;
-
-
Constructor Details
-
NbtText
- Mappings:
Namespace Name Mixin selector official <init>
Lop;<init>(Ljava/lang/String;Z)V
intermediary <init>
Lnet/minecraft/class_2574;<init>(Ljava/lang/String;Z)V
named <init>
Lnet/minecraft/text/NbtText;<init>(Ljava/lang/String;Z)V
-
NbtText
- Mappings:
Namespace Name Mixin selector official <init>
Lop;<init>(Ljava/lang/String;Ldr$g;Z)V
intermediary <init>
Lnet/minecraft/class_2574;<init>(Ljava/lang/String;Lnet/minecraft/class_2203$class_2209;Z)V
named <init>
Lnet/minecraft/text/NbtText;<init>(Ljava/lang/String;Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;Z)V
-
-
Method Details
-
parsePath
- Mappings:
Namespace Name Mixin selector official d
Lop;d(Ljava/lang/String;)Ldr$g;
intermediary method_10919
Lnet/minecraft/class_2574;method_10919(Ljava/lang/String;)Lnet/minecraft/class_2203$class_2209;
named parsePath
Lnet/minecraft/text/NbtText;parsePath(Ljava/lang/String;)Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;
-
toNbt
protected abstract Stream<CompoundTag> toNbt(ServerCommandSource source) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lop;a(Ldb;)Ljava/util/stream/Stream;
intermediary method_10916
Lnet/minecraft/class_2574;method_10916(Lnet/minecraft/class_2168;)Ljava/util/stream/Stream;
named toNbt
Lnet/minecraft/text/NbtText;toNbt(Lnet/minecraft/server/command/ServerCommandSource;)Ljava/util/stream/Stream;
-
getPath
- Mappings:
Namespace Name Mixin selector official h
Lop;h()Ljava/lang/String;
intermediary method_10920
Lnet/minecraft/class_2574;method_10920()Ljava/lang/String;
named getPath
Lnet/minecraft/text/NbtText;getPath()Ljava/lang/String;
-
shouldInterpret
public boolean shouldInterpret()- Mappings:
Namespace Name Mixin selector official i
Lop;i()Z
intermediary method_10921
Lnet/minecraft/class_2574;method_10921()Z
named shouldInterpret
Lnet/minecraft/text/NbtText;shouldInterpret()Z
-
parse
public MutableText parse(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfaceParsableText
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lok;a(Ldb;Laqv;I)Loo;
intermediary method_10890
Lnet/minecraft/class_2566;method_10890(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_5250;
named parse
Lnet/minecraft/text/ParsableText;parse(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/text/MutableText;
-