Class TagParser

java.lang.Object
net.minecraft.nbt.TagParser

public class TagParser extends Object
  • Field Details

    • ERROR_TRAILING_DATA

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TRAILING_DATA
    • ERROR_EXPECTED_KEY

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_EXPECTED_KEY
    • ERROR_EXPECTED_VALUE

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_EXPECTED_VALUE
    • ERROR_INSERT_MIXED_LIST

      public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_INSERT_MIXED_LIST
    • ERROR_INSERT_MIXED_ARRAY

      public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_INSERT_MIXED_ARRAY
    • ERROR_INVALID_ARRAY

      public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_ARRAY
    • ELEMENT_SEPARATOR

      public static final char ELEMENT_SEPARATOR
      See Also:
    • NAME_VALUE_SEPARATOR

      public static final char NAME_VALUE_SEPARATOR
      See Also:
    • LIST_OPEN

      private static final char LIST_OPEN
      See Also:
    • LIST_CLOSE

      private static final char LIST_CLOSE
      See Also:
    • STRUCT_CLOSE

      private static final char STRUCT_CLOSE
      See Also:
    • STRUCT_OPEN

      private static final char STRUCT_OPEN
      See Also:
    • DOUBLE_PATTERN_NOSUFFIX

      private static final Pattern DOUBLE_PATTERN_NOSUFFIX
    • DOUBLE_PATTERN

      private static final Pattern DOUBLE_PATTERN
    • FLOAT_PATTERN

      private static final Pattern FLOAT_PATTERN
    • BYTE_PATTERN

      private static final Pattern BYTE_PATTERN
    • LONG_PATTERN

      private static final Pattern LONG_PATTERN
    • SHORT_PATTERN

      private static final Pattern SHORT_PATTERN
    • INT_PATTERN

      private static final Pattern INT_PATTERN
    • reader

      private final com.mojang.brigadier.StringReader reader
  • Constructor Details

    • TagParser

      public TagParser(com.mojang.brigadier.StringReader p_129350_)
  • Method Details

    • parseTag

      public static CompoundTag parseTag(String p_129360_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readSingleStruct

      CompoundTag readSingleStruct() throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readKey

      protected String readKey() throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readTypedValue

      protected Tag readTypedValue() throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • type

      private Tag type(String p_129369_)
    • readValue

      public Tag readValue() throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readList

      protected Tag readList() throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readStruct

      public CompoundTag readStruct() throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readListTag

      private Tag readListTag() throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readArrayTag

      private Tag readArrayTag() throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readArray

      private <T extends Number> List<T> readArray(TagType<?> p_129362_, TagType<?> p_129363_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • hasElementSeparator

      private boolean hasElementSeparator()
    • expect

      private void expect(char p_129353_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException