Class NbtPathArgument

java.lang.Object
net.minecraft.commands.arguments.NbtPathArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<NbtPathArgument.NbtPath>

public class NbtPathArgument extends Object implements com.mojang.brigadier.arguments.ArgumentType<NbtPathArgument.NbtPath>
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
    • ERROR_INVALID_NODE

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_INVALID_NODE
    • ERROR_NOTHING_FOUND

      public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_NOTHING_FOUND
    • INDEX_MATCH_START

      private static final char INDEX_MATCH_START
      See Also:
      Constant Field Values
    • INDEX_MATCH_END

      private static final char INDEX_MATCH_END
      See Also:
      Constant Field Values
    • KEY_MATCH_START

      private static final char KEY_MATCH_START
      See Also:
      Constant Field Values
    • KEY_MATCH_END

      private static final char KEY_MATCH_END
      See Also:
      Constant Field Values
    • QUOTED_KEY_START

      private static final char QUOTED_KEY_START
      See Also:
      Constant Field Values
  • Constructor Details

    • NbtPathArgument

      public NbtPathArgument()
  • Method Details

    • nbtPath

      public static NbtPathArgument nbtPath()
    • getPath

      public static NbtPathArgument.NbtPath getPath(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_99499_, String p_99500_)
    • parse

      public NbtPathArgument.NbtPath parse(com.mojang.brigadier.StringReader p_99491_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<NbtPathArgument.NbtPath>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • parseNode

      private static NbtPathArgument.Node parseNode(com.mojang.brigadier.StringReader p_99496_, boolean p_99497_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readObjectNode

      private static NbtPathArgument.Node readObjectNode(com.mojang.brigadier.StringReader p_99493_, String p_99494_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readUnquotedName

      private static String readUnquotedName(com.mojang.brigadier.StringReader p_99509_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<NbtPathArgument.NbtPath>
    • isAllowedInUnquotedName

      private static boolean isAllowedInUnquotedName(char p_99489_)
    • createTagPredicate

      static Predicate<Tag> createTagPredicate(CompoundTag p_99511_)