Class NbtText.EntityNbtText

All Implemented Interfaces:
com.mojang.brigadier.Message, MutableText, ParsableText, StringVisitable, Text
Enclosing class:
NbtText

public static class NbtText.EntityNbtText
extends NbtText
Mappings:
Namespace Name
official op$b
intermediary net/minecraft/class_2574$class_2576
named net/minecraft/text/NbtText$EntityNbtText
  • Field Details

    • rawSelector

      private final String rawSelector
      Mappings:
      Namespace Name Mixin selector
      official g Lop$b;g:Ljava/lang/String;
      intermediary field_11782 Lnet/minecraft/class_2574$class_2576;field_11782:Ljava/lang/String;
      named rawSelector Lnet/minecraft/text/NbtText$EntityNbtText;rawSelector:Ljava/lang/String;
    • selector

      @Nullable private final EntitySelector selector
      Mappings:
      Namespace Name Mixin selector
      official h Lop$b;h:Lfc;
      intermediary field_11781 Lnet/minecraft/class_2574$class_2576;field_11781:Lnet/minecraft/class_2300;
      named selector Lnet/minecraft/text/NbtText$EntityNbtText;selector:Lnet/minecraft/command/EntitySelector;
  • Constructor Details

    • EntityNbtText

      public EntityNbtText​(String rawPath, boolean interpret, String rawSelector)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lop$b;<init>(Ljava/lang/String;ZLjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_2574$class_2576;<init>(Ljava/lang/String;ZLjava/lang/String;)V
      named <init> Lnet/minecraft/text/NbtText$EntityNbtText;<init>(Ljava/lang/String;ZLjava/lang/String;)V
    • EntityNbtText

      private EntityNbtText​(String rawPath, @Nullable NbtPathArgumentType.NbtPath path, boolean interpret, String rawSelector, @Nullable EntitySelector selector)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lop$b;<init>(Ljava/lang/String;Ldr$g;ZLjava/lang/String;Lfc;)V
      intermediary <init> Lnet/minecraft/class_2574$class_2576;<init>(Ljava/lang/String;Lnet/minecraft/class_2203$class_2209;ZLjava/lang/String;Lnet/minecraft/class_2300;)V
      named <init> Lnet/minecraft/text/NbtText$EntityNbtText;<init>(Ljava/lang/String;Lnet/minecraft/command/argument/NbtPathArgumentType$NbtPath;ZLjava/lang/String;Lnet/minecraft/command/EntitySelector;)V
  • Method Details

    • parseSelector

      @Nullable private static EntitySelector parseSelector​(String rawSelector)
      Mappings:
      Namespace Name Mixin selector
      official d Lop$b;d(Ljava/lang/String;)Lfc;
      intermediary method_10923 Lnet/minecraft/class_2574$class_2576;method_10923(Ljava/lang/String;)Lnet/minecraft/class_2300;
      named parseSelector Lnet/minecraft/text/NbtText$EntityNbtText;parseSelector(Ljava/lang/String;)Lnet/minecraft/command/EntitySelector;
    • getSelector

      public String getSelector()
      Mappings:
      Namespace Name Mixin selector
      official j Lop$b;j()Ljava/lang/String;
      intermediary method_10924 Lnet/minecraft/class_2574$class_2576;method_10924()Ljava/lang/String;
      named getSelector Lnet/minecraft/text/NbtText$EntityNbtText;getSelector()Ljava/lang/String;
    • copy

      public NbtText.EntityNbtText copy()
      Description copied from interface: Text
      Copies the text itself, excluding the styles or siblings.
      Specified by:
      copy in interface Text
      Specified by:
      copy in class BaseText
      Mappings:
      Namespace Name Mixin selector
      official k Lop$b;k()Lop$b;
      intermediary method_27697 Lnet/minecraft/class_2574$class_2576;method_27697()Lnet/minecraft/class_2574$class_2576;
      named copy Lnet/minecraft/text/NbtText$EntityNbtText;copy()Lnet/minecraft/text/NbtText$EntityNbtText;
    • toNbt

      protected Stream<CompoundTag> toNbt​(ServerCommandSource source) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      toNbt in class NbtText
      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;
    • equals

      public boolean equals​(Object obj)
      Overrides:
      equals in class BaseText
      Mappings:
      Namespace Name Mixin selector
      official equals Loe;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_2554;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/text/BaseText;equals(Ljava/lang/Object;)Z
    • toString

      public String toString()
      Overrides:
      toString in class BaseText
      Mappings:
      Namespace Name Mixin selector
      official toString Loe;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_2554;toString()Ljava/lang/String;
      named toString Lnet/minecraft/text/BaseText;toString()Ljava/lang/String;