Class StringTag

java.lang.Object
net.minecraft.nbt.StringTag
All Implemented Interfaces:
Tag

public class StringTag
extends Object
implements Tag
Mappings:
Namespace Name
official ng
intermediary net/minecraft/class_2519
named net/minecraft/nbt/StringTag
  • Field Details

    • READER

      public static final TagReader<StringTag> READER
      Mappings:
      Namespace Name Mixin selector
      official a Lng;a:Lnk;
      intermediary field_21045 Lnet/minecraft/class_2519;field_21045:Lnet/minecraft/class_4614;
      named READER Lnet/minecraft/nbt/StringTag;READER:Lnet/minecraft/nbt/TagReader;
    • EMPTY

      private static final StringTag EMPTY
      Mappings:
      Namespace Name Mixin selector
      official b Lng;b:Lng;
      intermediary field_21046 Lnet/minecraft/class_2519;field_21046:Lnet/minecraft/class_2519;
      named EMPTY Lnet/minecraft/nbt/StringTag;EMPTY:Lnet/minecraft/nbt/StringTag;
    • value

      private final String value
      Mappings:
      Namespace Name Mixin selector
      official c Lng;c:Ljava/lang/String;
      intermediary field_11590 Lnet/minecraft/class_2519;field_11590:Ljava/lang/String;
      named value Lnet/minecraft/nbt/StringTag;value:Ljava/lang/String;
  • Constructor Details

    • StringTag

      private StringTag​(String value)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lng;<init>(Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_2519;<init>(Ljava/lang/String;)V
      named <init> Lnet/minecraft/nbt/StringTag;<init>(Ljava/lang/String;)V
  • Method Details

    • of

      public static StringTag of​(String value)
      Mappings:
      Namespace Name Mixin selector
      official a Lng;a(Ljava/lang/String;)Lng;
      intermediary method_23256 Lnet/minecraft/class_2519;method_23256(Ljava/lang/String;)Lnet/minecraft/class_2519;
      named of Lnet/minecraft/nbt/StringTag;of(Ljava/lang/String;)Lnet/minecraft/nbt/StringTag;
    • write

      public void write​(DataOutput output) throws IOException
      Specified by:
      write in interface Tag
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lni;a(Ljava/io/DataOutput;)V
      intermediary method_10713 Lnet/minecraft/class_2520;method_10713(Ljava/io/DataOutput;)V
      named write Lnet/minecraft/nbt/Tag;write(Ljava/io/DataOutput;)V
    • getType

      public byte getType()
      Specified by:
      getType in interface Tag
      Mappings:
      Namespace Name Mixin selector
      official a Lni;a()B
      intermediary method_10711 Lnet/minecraft/class_2520;method_10711()B
      named getType Lnet/minecraft/nbt/Tag;getType()B
    • getReader

      public TagReader<StringTag> getReader()
      Specified by:
      getReader in interface Tag
      Mappings:
      Namespace Name Mixin selector
      official b Lni;b()Lnk;
      intermediary method_23258 Lnet/minecraft/class_2520;method_23258()Lnet/minecraft/class_4614;
      named getReader Lnet/minecraft/nbt/Tag;getReader()Lnet/minecraft/nbt/TagReader;
    • toString

      public String toString()
      Specified by:
      toString in interface Tag
      Overrides:
      toString in class Object
      Mappings:
      Namespace Name Mixin selector
      official toString Lni;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_2520;toString()Ljava/lang/String;
      named toString Lnet/minecraft/nbt/Tag;toString()Ljava/lang/String;
    • copy

      public StringTag copy()
      Specified by:
      copy in interface Tag
      Mappings:
      Namespace Name Mixin selector
      official d Lng;d()Lng;
      intermediary method_10705 Lnet/minecraft/class_2519;method_10705()Lnet/minecraft/class_2519;
      named copy Lnet/minecraft/nbt/StringTag;copy()Lnet/minecraft/nbt/StringTag;
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lng;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_2519;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/nbt/StringTag;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Mappings:
      Namespace Name Mixin selector
      official hashCode Lng;hashCode()I
      intermediary hashCode Lnet/minecraft/class_2519;hashCode()I
      named hashCode Lnet/minecraft/nbt/StringTag;hashCode()I
    • asString

      public String asString()
      Specified by:
      asString in interface Tag
      Mappings:
      Namespace Name Mixin selector
      official f_ Lni;f_()Ljava/lang/String;
      intermediary method_10714 Lnet/minecraft/class_2520;method_10714()Ljava/lang/String;
      named asString Lnet/minecraft/nbt/Tag;asString()Ljava/lang/String;
    • accept

      public void accept​(NbtTagVisitor visitor)
      Specified by:
      accept in interface Tag
      Mappings:
      Namespace Name Mixin selector
      official a Lni;a(Lnm;)V
      intermediary method_32289 Lnet/minecraft/class_2520;method_32289(Lnet/minecraft/class_5627;)V
      named accept Lnet/minecraft/nbt/Tag;accept(Lnet/minecraft/nbt/visitor/NbtTagVisitor;)V
    • escape

      public static String escape​(String value)
      Mappings:
      Namespace Name Mixin selector
      official b Lng;b(Ljava/lang/String;)Ljava/lang/String;
      intermediary method_10706 Lnet/minecraft/class_2519;method_10706(Ljava/lang/String;)Ljava/lang/String;
      named escape Lnet/minecraft/nbt/StringTag;escape(Ljava/lang/String;)Ljava/lang/String;