Package net.minecraft.text
Class NbtTextContent
java.lang.Object
net.minecraft.text.NbtTextContent
- All Implemented Interfaces:
TextContent
- Mappings:
Namespace Name named net/minecraft/text/NbtTextContentintermediary net/minecraft/class_2574official ym
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.text.TextContent
TextContent.Type<T extends TextContent> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<NbtTextContent> private final NbtDataSourceprivate final booleanprivate static final Loggerprotected final NbtPathArgumentType.NbtPathprivate final Stringstatic final TextContent.Type<NbtTextContent> -
Constructor Summary
ConstructorsModifierConstructorDescriptionNbtTextContent(String rawPath, boolean interpret, Optional<Text> separator, NbtDataSource dataSource) privateNbtTextContent(String rawPath, NbtPathArgumentType.NbtPath path, boolean interpret, Optional<Text> separator, NbtDataSource dataSource) -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringasString(NbtElement nbt) booleangetPath()getType()inthashCode()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.NbtPathbooleantoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.text.TextContent
visit, visit
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/text/NbtTextContent;LOGGER:Lorg/slf4j/Logger;intermediary field_11777Lnet/minecraft/class_2574;field_11777:Lorg/slf4j/Logger;official dLym;d:Lorg/slf4j/Logger;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/text/NbtTextContent;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_46621Lnet/minecraft/class_2574;field_46621:Lcom/mojang/serialization/MapCodec;official aLym;a:Lcom/mojang/serialization/MapCodec;
-
TYPE
- Mappings:
Namespace Name Mixin selector named TYPELnet/minecraft/text/NbtTextContent;TYPE:Lnet/minecraft/text/TextContent$Type;intermediary field_46622Lnet/minecraft/class_2574;field_46622:Lnet/minecraft/class_7417$class_8823;official bLym;b:Lxh$a;
-
interpret
private final boolean interpret- Mappings:
Namespace Name Mixin selector named interpretLnet/minecraft/text/NbtTextContent;interpret:Zintermediary field_11778Lnet/minecraft/class_2574;field_11778:Zofficial eLym;e:Z
-
separator
- Mappings:
Namespace Name Mixin selector named separatorLnet/minecraft/text/NbtTextContent;separator:Ljava/util/Optional;intermediary field_33539Lnet/minecraft/class_2574;field_33539:Ljava/util/Optional;official fLym;f:Ljava/util/Optional;
-
rawPath
- Mappings:
Namespace Name Mixin selector named rawPathLnet/minecraft/text/NbtTextContent;rawPath:Ljava/lang/String;intermediary field_11776Lnet/minecraft/class_2574;field_11776:Ljava/lang/String;official gLym;g:Ljava/lang/String;
-
dataSource
- Mappings:
Namespace Name Mixin selector named dataSourceLnet/minecraft/text/NbtTextContent;dataSource:Lnet/minecraft/text/NbtDataSource;intermediary field_39014Lnet/minecraft/class_2574;field_39014:Lnet/minecraft/class_7419;official hLym;h:Lyi;
-
path
- Mappings:
Namespace Name Mixin selector named pathLnet/minecraft/text/NbtTextContent;path:Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;intermediary field_11779Lnet/minecraft/class_2574;field_11779:Lnet/minecraft/class_2203$class_2209;official cLym;c:Lfc$g;
-
-
Constructor Details
-
NbtTextContent
public NbtTextContent(String rawPath, boolean interpret, Optional<Text> separator, NbtDataSource dataSource) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/text/NbtTextContent;<init>(Ljava/lang/String;ZLjava/util/Optional;Lnet/minecraft/text/NbtDataSource;)Vintermediary <init>Lnet/minecraft/class_2574;<init>(Ljava/lang/String;ZLjava/util/Optional;Lnet/minecraft/class_7419;)Vofficial <init>Lym;<init>(Ljava/lang/String;ZLjava/util/Optional;Lyi;)V
-
NbtTextContent
private NbtTextContent(String rawPath, @Nullable NbtPathArgumentType.NbtPath path, boolean interpret, Optional<Text> separator, NbtDataSource dataSource) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/text/NbtTextContent;<init>(Ljava/lang/String;Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;ZLjava/util/Optional;Lnet/minecraft/text/NbtDataSource;)Vintermediary <init>Lnet/minecraft/class_2574;<init>(Ljava/lang/String;Lnet/minecraft/class_2203$class_2209;ZLjava/util/Optional;Lnet/minecraft/class_7419;)Vofficial <init>Lym;<init>(Ljava/lang/String;Lfc$g;ZLjava/util/Optional;Lyi;)V
-
-
Method Details
-
parsePath
- Mappings:
Namespace Name Mixin selector named parsePathLnet/minecraft/text/NbtTextContent;parsePath(Ljava/lang/String;)Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;intermediary method_10919Lnet/minecraft/class_2574;method_10919(Ljava/lang/String;)Lnet/minecraft/class_2203$class_2209;official aLym;a(Ljava/lang/String;)Lfc$g;
-
getPath
- Mappings:
Namespace Name Mixin selector named getPathLnet/minecraft/text/NbtTextContent;getPath()Ljava/lang/String;intermediary method_10920Lnet/minecraft/class_2574;method_10920()Ljava/lang/String;official bLym;b()Ljava/lang/String;
-
shouldInterpret
public boolean shouldInterpret()- Mappings:
Namespace Name Mixin selector named shouldInterpretLnet/minecraft/text/NbtTextContent;shouldInterpret()Zintermediary method_10921Lnet/minecraft/class_2574;method_10921()Zofficial cLym;c()Z
-
getSeparator
- Mappings:
Namespace Name Mixin selector named getSeparatorLnet/minecraft/text/NbtTextContent;getSeparator()Ljava/util/Optional;intermediary method_43484Lnet/minecraft/class_2574;method_43484()Ljava/util/Optional;official dLym;d()Ljava/util/Optional;
-
getDataSource
- Mappings:
Namespace Name Mixin selector named getDataSourceLnet/minecraft/text/NbtTextContent;getDataSource()Lnet/minecraft/text/NbtDataSource;intermediary method_43485Lnet/minecraft/class_2574;method_43485()Lnet/minecraft/class_7419;official eLym;e()Lyi;
-
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:
parsein interfaceTextContent- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/text/TextContent;parse(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/text/MutableText;intermediary method_10890Lnet/minecraft/class_7417;method_10890(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_5250;official aLxh;a(Lek;Lbxe;I)Lxu;
-
asString
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/text/NbtTextContent;asString(Lnet/minecraft/nbt/NbtElement;)Ljava/lang/String;intermediary method_68667Lnet/minecraft/class_2574;method_68667(Lnet/minecraft/class_2520;)Ljava/lang/String;official aLym;a(Lva;)Ljava/lang/String;
-
getType
- Specified by:
getTypein interfaceTextContent- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/text/TextContent;getType()Lnet/minecraft/text/TextContent$Type;intermediary method_54163Lnet/minecraft/class_7417;method_54163()Lnet/minecraft/class_7417$class_8823;official aLxh;a()Lxh$a;
-