Package net.minecraft.text
Class NbtTextContent
java.lang.Object
net.minecraft.text.NbtTextContent
- All Implemented Interfaces:
TextContent
- Mappings:
Namespace Name official ur
intermediary net/minecraft/class_2574
named net/minecraft/text/NbtTextContent
-
Field Summary
Modifier and TypeFieldDescriptionprivate final NbtDataSource
private final boolean
private static final Logger
protected final NbtPathArgumentType.NbtPath
private final String
Fields inherited from interface net.minecraft.text.TextContent
EMPTY
-
Constructor Summary
ModifierConstructorDescriptionNbtTextContent
(String rawPath, boolean interpret, Optional<Text> separator, NbtDataSource dataSource) private
NbtTextContent
(String rawPath, NbtPathArgumentType.NbtPath path, boolean interpret, Optional<Text> separator, NbtDataSource dataSource) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getPath()
int
hashCode()
parse
(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) Parses this content into a basic mutable text without custom style or siblings.private static NbtPathArgumentType.NbtPath
boolean
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.text.TextContent
visit, visit
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official c
Lur;c:Lorg/slf4j/Logger;
intermediary field_11777
Lnet/minecraft/class_2574;field_11777:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/text/NbtTextContent;LOGGER:Lorg/slf4j/Logger;
-
interpret
private final boolean interpret- Mappings:
Namespace Name Mixin selector official d
Lur;d:Z
intermediary field_11778
Lnet/minecraft/class_2574;field_11778:Z
named interpret
Lnet/minecraft/text/NbtTextContent;interpret:Z
-
separator
- Mappings:
Namespace Name Mixin selector official e
Lur;e:Ljava/util/Optional;
intermediary field_33539
Lnet/minecraft/class_2574;field_33539:Ljava/util/Optional;
named separator
Lnet/minecraft/text/NbtTextContent;separator:Ljava/util/Optional;
-
rawPath
- Mappings:
Namespace Name Mixin selector official f
Lur;f:Ljava/lang/String;
intermediary field_11776
Lnet/minecraft/class_2574;field_11776:Ljava/lang/String;
named rawPath
Lnet/minecraft/text/NbtTextContent;rawPath:Ljava/lang/String;
-
dataSource
- Mappings:
Namespace Name Mixin selector official g
Lur;g:Lum;
intermediary field_39014
Lnet/minecraft/class_2574;field_39014:Lnet/minecraft/class_7419;
named dataSource
Lnet/minecraft/text/NbtTextContent;dataSource:Lnet/minecraft/text/NbtDataSource;
-
path
- Mappings:
Namespace Name Mixin selector official b
Lur;b:Lej$g;
intermediary field_11779
Lnet/minecraft/class_2574;field_11779:Lnet/minecraft/class_2203$class_2209;
named path
Lnet/minecraft/text/NbtTextContent;path:Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;
-
-
Constructor Details
-
NbtTextContent
public NbtTextContent(String rawPath, boolean interpret, Optional<Text> separator, NbtDataSource dataSource) - Mappings:
Namespace Name Mixin selector official <init>
Lur;<init>(Ljava/lang/String;ZLjava/util/Optional;Lum;)V
intermediary <init>
Lnet/minecraft/class_2574;<init>(Ljava/lang/String;ZLjava/util/Optional;Lnet/minecraft/class_7419;)V
named <init>
Lnet/minecraft/text/NbtTextContent;<init>(Ljava/lang/String;ZLjava/util/Optional;Lnet/minecraft/text/NbtDataSource;)V
-
NbtTextContent
private NbtTextContent(String rawPath, @Nullable NbtPathArgumentType.NbtPath path, boolean interpret, Optional<Text> separator, NbtDataSource dataSource) - Mappings:
Namespace Name Mixin selector official <init>
Lur;<init>(Ljava/lang/String;Lej$g;ZLjava/util/Optional;Lum;)V
intermediary <init>
Lnet/minecraft/class_2574;<init>(Ljava/lang/String;Lnet/minecraft/class_2203$class_2209;ZLjava/util/Optional;Lnet/minecraft/class_7419;)V
named <init>
Lnet/minecraft/text/NbtTextContent;<init>(Ljava/lang/String;Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;ZLjava/util/Optional;Lnet/minecraft/text/NbtDataSource;)V
-
-
Method Details
-
parsePath
- Mappings:
Namespace Name Mixin selector official a
Lur;a(Ljava/lang/String;)Lej$g;
intermediary method_10919
Lnet/minecraft/class_2574;method_10919(Ljava/lang/String;)Lnet/minecraft/class_2203$class_2209;
named parsePath
Lnet/minecraft/text/NbtTextContent;parsePath(Ljava/lang/String;)Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;
-
getPath
- Mappings:
Namespace Name Mixin selector official a
Lur;a()Ljava/lang/String;
intermediary method_10920
Lnet/minecraft/class_2574;method_10920()Ljava/lang/String;
named getPath
Lnet/minecraft/text/NbtTextContent;getPath()Ljava/lang/String;
-
shouldInterpret
public boolean shouldInterpret()- Mappings:
Namespace Name Mixin selector official b
Lur;b()Z
intermediary method_10921
Lnet/minecraft/class_2574;method_10921()Z
named shouldInterpret
Lnet/minecraft/text/NbtTextContent;shouldInterpret()Z
-
getSeparator
- Mappings:
Namespace Name Mixin selector official c
Lur;c()Ljava/util/Optional;
intermediary method_43484
Lnet/minecraft/class_2574;method_43484()Ljava/util/Optional;
named getSeparator
Lnet/minecraft/text/NbtTextContent;getSeparator()Ljava/util/Optional;
-
getDataSource
- Mappings:
Namespace Name Mixin selector official d
Lur;d()Lum;
intermediary method_43485
Lnet/minecraft/class_2574;method_43485()Lnet/minecraft/class_7419;
named getDataSource
Lnet/minecraft/text/NbtTextContent;getDataSource()Lnet/minecraft/text/NbtDataSource;
-
equals
-
hashCode
public int hashCode() -
toString
-
parse
public MutableText parse(@Nullable @Nullable ServerCommandSource source, @Nullable @Nullable Entity sender, int depth) throws com.mojang.brigadier.exceptions.CommandSyntaxException Parses this content into a basic mutable text without custom style or siblings. The resulting text may or may not have this content.- Specified by:
parse
in interfaceTextContent
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Ltm;a(Ldt;Lbiq;I)Lty;
intermediary method_10890
Lnet/minecraft/class_7417;method_10890(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_5250;
named parse
Lnet/minecraft/text/TextContent;parse(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/text/MutableText;
-