Class NbtTextContent

java.lang.Object
net.minecraft.text.NbtTextContent
All Implemented Interfaces:
TextContent

public class NbtTextContent extends Object implements TextContent
Mappings:
Namespace Name
named net/minecraft/text/NbtTextContent
intermediary net/minecraft/class_2574
official yf
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/text/NbtTextContent;LOGGER:Lorg/slf4j/Logger;
      intermediary field_11777 Lnet/minecraft/class_2574;field_11777:Lorg/slf4j/Logger;
      official d Lyf;d:Lorg/slf4j/Logger;
    • CODEC

      public static final com.mojang.serialization.MapCodec<NbtTextContent> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/text/NbtTextContent;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_46621 Lnet/minecraft/class_2574;field_46621:Lcom/mojang/serialization/MapCodec;
      official a Lyf;a:Lcom/mojang/serialization/MapCodec;
    • TYPE

      public static final TextContent.Type<NbtTextContent> TYPE
      Mappings:
      Namespace Name Mixin selector
      named TYPE Lnet/minecraft/text/NbtTextContent;TYPE:Lnet/minecraft/text/TextContent$Type;
      intermediary field_46622 Lnet/minecraft/class_2574;field_46622:Lnet/minecraft/class_7417$class_8823;
      official b Lyf;b:Lxa$a;
    • interpret

      private final boolean interpret
      Mappings:
      Namespace Name Mixin selector
      named interpret Lnet/minecraft/text/NbtTextContent;interpret:Z
      intermediary field_11778 Lnet/minecraft/class_2574;field_11778:Z
      official e Lyf;e:Z
    • separator

      private final Optional<Text> separator
      Mappings:
      Namespace Name Mixin selector
      named separator Lnet/minecraft/text/NbtTextContent;separator:Ljava/util/Optional;
      intermediary field_33539 Lnet/minecraft/class_2574;field_33539:Ljava/util/Optional;
      official f Lyf;f:Ljava/util/Optional;
    • rawPath

      private final String rawPath
      Mappings:
      Namespace Name Mixin selector
      named rawPath Lnet/minecraft/text/NbtTextContent;rawPath:Ljava/lang/String;
      intermediary field_11776 Lnet/minecraft/class_2574;field_11776:Ljava/lang/String;
      official g Lyf;g:Ljava/lang/String;
    • dataSource

      private final NbtDataSource dataSource
      Mappings:
      Namespace Name Mixin selector
      named dataSource Lnet/minecraft/text/NbtTextContent;dataSource:Lnet/minecraft/text/NbtDataSource;
      intermediary field_39014 Lnet/minecraft/class_2574;field_39014:Lnet/minecraft/class_7419;
      official h Lyf;h:Lyb;
    • path

      @Nullable protected final NbtPathArgumentType.NbtPath path
      Mappings:
      Namespace Name Mixin selector
      named path Lnet/minecraft/text/NbtTextContent;path:Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;
      intermediary field_11779 Lnet/minecraft/class_2574;field_11779:Lnet/minecraft/class_2203$class_2209;
      official c Lyf;c:Lfl$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;)V
      intermediary <init> Lnet/minecraft/class_2574;<init>(Ljava/lang/String;ZLjava/util/Optional;Lnet/minecraft/class_7419;)V
      official <init> Lyf;<init>(Ljava/lang/String;ZLjava/util/Optional;Lyb;)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;)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
      official <init> Lyf;<init>(Ljava/lang/String;Lfl$g;ZLjava/util/Optional;Lyb;)V
  • Method Details

    • parsePath

      @Nullable private static NbtPathArgumentType.NbtPath parsePath(String rawPath)
      Mappings:
      Namespace Name Mixin selector
      named parsePath Lnet/minecraft/text/NbtTextContent;parsePath(Ljava/lang/String;)Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;
      intermediary method_10919 Lnet/minecraft/class_2574;method_10919(Ljava/lang/String;)Lnet/minecraft/class_2203$class_2209;
      official a Lyf;a(Ljava/lang/String;)Lfl$g;
    • getPath

      public String getPath()
      Mappings:
      Namespace Name Mixin selector
      named getPath Lnet/minecraft/text/NbtTextContent;getPath()Ljava/lang/String;
      intermediary method_10920 Lnet/minecraft/class_2574;method_10920()Ljava/lang/String;
      official b Lyf;b()Ljava/lang/String;
    • shouldInterpret

      public boolean shouldInterpret()
      Mappings:
      Namespace Name Mixin selector
      named shouldInterpret Lnet/minecraft/text/NbtTextContent;shouldInterpret()Z
      intermediary method_10921 Lnet/minecraft/class_2574;method_10921()Z
      official c Lyf;c()Z
    • getSeparator

      public Optional<Text> getSeparator()
      Mappings:
      Namespace Name Mixin selector
      named getSeparator Lnet/minecraft/text/NbtTextContent;getSeparator()Ljava/util/Optional;
      intermediary method_43484 Lnet/minecraft/class_2574;method_43484()Ljava/util/Optional;
      official d Lyf;d()Ljava/util/Optional;
    • getDataSource

      public NbtDataSource getDataSource()
      Mappings:
      Namespace Name Mixin selector
      named getDataSource Lnet/minecraft/text/NbtTextContent;getDataSource()Lnet/minecraft/text/NbtDataSource;
      intermediary method_43485 Lnet/minecraft/class_2574;method_43485()Lnet/minecraft/class_7419;
      official e Lyf;e()Lyb;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/text/NbtTextContent;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_2574;equals(Ljava/lang/Object;)Z
      official equals Lyf;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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 interface TextContent
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/text/TextContent;parse(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/text/MutableText;
      intermediary method_10890 Lnet/minecraft/class_7417;method_10890(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_5250;
      official a Lxa;a(Let;Lbsr;I)Lxn;
    • getType

      public TextContent.Type<?> getType()
      Specified by:
      getType in interface TextContent
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/text/TextContent;getType()Lnet/minecraft/text/TextContent$Type;
      intermediary method_54163 Lnet/minecraft/class_7417;method_54163()Lnet/minecraft/class_7417$class_8823;
      official a Lxa;a()Lxa$a;