Class StringNbtReader

java.lang.Object
net.minecraft.nbt.StringNbtReader

public class StringNbtReader extends Object
Mappings:
Namespace Name
official ed
intermediary net/minecraft/class_1949
named net/minecraft/nbt/StringNbtReader
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Led;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_8408 Lnet/minecraft/class_1949;field_8408:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/nbt/StringNbtReader;LOGGER:Lorg/apache/logging/log4j/Logger;
    • VALID_LIST_PATTERN

      private static final Pattern VALID_LIST_PATTERN
      Mappings:
      Namespace Name Mixin selector
      official b Led;b:Ljava/util/regex/Pattern;
      intermediary field_11537 Lnet/minecraft/class_1949;field_11537:Ljava/util/regex/Pattern;
      named VALID_LIST_PATTERN Lnet/minecraft/nbt/StringNbtReader;VALID_LIST_PATTERN:Ljava/util/regex/Pattern;
  • Constructor Details

    • StringNbtReader

      public StringNbtReader()
  • Method Details

    • parse

      public static NbtCompound parse(String string) throws NbtException
      Throws:
      NbtException
      Mappings:
      Namespace Name Mixin selector
      official a Led;a(Ljava/lang/String;)Ldn;
      intermediary method_10579 Lnet/minecraft/class_1949;method_10579(Ljava/lang/String;)Lnet/minecraft/class_322;
      named parse Lnet/minecraft/nbt/StringNbtReader;parse(Ljava/lang/String;)Lnet/minecraft/nbt/NbtCompound;
    • getTopElementCount

      static int getTopElementCount(String string) throws NbtException
      Throws:
      NbtException
      Mappings:
      Namespace Name Mixin selector
      official b Led;b(Ljava/lang/String;)I
      intermediary method_7381 Lnet/minecraft/class_1949;method_7381(Ljava/lang/String;)I
      named getTopElementCount Lnet/minecraft/nbt/StringNbtReader;getTopElementCount(Ljava/lang/String;)I
    • createParserFromArray

      static StringNbtReader.Parser createParserFromArray(String[] keyNbtArray) throws NbtException
      Throws:
      NbtException
      Mappings:
      Namespace Name Mixin selector
      official a Led;a([Ljava/lang/String;)Led$a;
      intermediary method_10582 Lnet/minecraft/class_1949;method_10582([Ljava/lang/String;)Lnet/minecraft/class_1949$class_1950;
      named createParserFromArray Lnet/minecraft/nbt/StringNbtReader;createParserFromArray([Ljava/lang/String;)Lnet/minecraft/nbt/StringNbtReader$Parser;
    • createParser

      static StringNbtReader.Parser createParser(String key, String stringNbt) throws NbtException
      Throws:
      NbtException
      Mappings:
      Namespace Name Mixin selector
      official a Led;a(Ljava/lang/String;Ljava/lang/String;)Led$a;
      intermediary method_7379 Lnet/minecraft/class_1949;method_7379(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/class_1949$class_1950;
      named createParser Lnet/minecraft/nbt/StringNbtReader;createParser(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/nbt/StringNbtReader$Parser;
    • createParser

      private static StringNbtReader.Parser createParser(String stringNbt, boolean missingKey) throws NbtException
      Throws:
      NbtException
      Mappings:
      Namespace Name Mixin selector
      official a Led;a(Ljava/lang/String;Z)Led$a;
      intermediary method_10581 Lnet/minecraft/class_1949;method_10581(Ljava/lang/String;Z)Lnet/minecraft/class_1949$class_1950;
      named createParser Lnet/minecraft/nbt/StringNbtReader;createParser(Ljava/lang/String;Z)Lnet/minecraft/nbt/StringNbtReader$Parser;
    • getFirstElement

      private static String getFirstElement(String stringNbt, boolean hasKey) throws NbtException
      Throws:
      NbtException
      Mappings:
      Namespace Name Mixin selector
      official b Led;b(Ljava/lang/String;Z)Ljava/lang/String;
      intermediary method_7380 Lnet/minecraft/class_1949;method_7380(Ljava/lang/String;Z)Ljava/lang/String;
      named getFirstElement Lnet/minecraft/nbt/StringNbtReader;getFirstElement(Ljava/lang/String;Z)Ljava/lang/String;
    • getFirstElement

      private static String getFirstElement(String string, int startIndex) throws NbtException
      Throws:
      NbtException
      Mappings:
      Namespace Name Mixin selector
      official a Led;a(Ljava/lang/String;I)Ljava/lang/String;
      intermediary method_10580 Lnet/minecraft/class_1949;method_10580(Ljava/lang/String;I)Ljava/lang/String;
      named getFirstElement Lnet/minecraft/nbt/StringNbtReader;getFirstElement(Ljava/lang/String;I)Ljava/lang/String;
    • getKey

      private static String getKey(String stringNbt, boolean missingKey) throws NbtException
      Throws:
      NbtException
      Mappings:
      Namespace Name Mixin selector
      official c Led;c(Ljava/lang/String;Z)Ljava/lang/String;
      intermediary method_7382 Lnet/minecraft/class_1949;method_7382(Ljava/lang/String;Z)Ljava/lang/String;
      named getKey Lnet/minecraft/nbt/StringNbtReader;getKey(Ljava/lang/String;Z)Ljava/lang/String;
    • getValue

      private static String getValue(String stringNbt, boolean missingKey) throws NbtException
      Throws:
      NbtException
      Mappings:
      Namespace Name Mixin selector
      official d Led;d(Ljava/lang/String;Z)Ljava/lang/String;
      intermediary method_7383 Lnet/minecraft/class_1949;method_7383(Ljava/lang/String;Z)Ljava/lang/String;
      named getValue Lnet/minecraft/nbt/StringNbtReader;getValue(Ljava/lang/String;Z)Ljava/lang/String;
    • indexOf

      private static int indexOf(String string, char c)
      Mappings:
      Namespace Name Mixin selector
      official a Led;a(Ljava/lang/String;C)I
      intermediary method_7378 Lnet/minecraft/class_1949;method_7378(Ljava/lang/String;C)I
      named indexOf Lnet/minecraft/nbt/StringNbtReader;indexOf(Ljava/lang/String;C)I
    • isEscaped

      private static boolean isEscaped(String string, int index)
      Mappings:
      Namespace Name Mixin selector
      official b Led;b(Ljava/lang/String;I)Z
      intermediary method_10583 Lnet/minecraft/class_1949;method_10583(Ljava/lang/String;I)Z
      named isEscaped Lnet/minecraft/nbt/StringNbtReader;isEscaped(Ljava/lang/String;I)Z