Class NBTPathArgument

java.lang.Object
net.minecraft.command.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
  • Constructor Details

    • NBTPathArgument

      public NBTPathArgument()
  • Method Details

    • nbtPath

      public static NBTPathArgument nbtPath()
    • getPath

      public static NBTPathArgument.NBTPath getPath(com.mojang.brigadier.context.CommandContext<CommandSource> p_197148_0_, String p_197148_1_)
    • parse

      public NBTPathArgument.NBTPath parse(com.mojang.brigadier.StringReader p_parse_1_) 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.INode parseNode(com.mojang.brigadier.StringReader p_218079_0_, boolean p_218079_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readObjectNode

      private static NBTPathArgument.INode readObjectNode(com.mojang.brigadier.StringReader p_218083_0_, String p_218083_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readUnquotedName

      private static String readUnquotedName(com.mojang.brigadier.StringReader p_197151_0_) 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_197146_0_)
    • createTagPredicate

      private static Predicate<INBT> createTagPredicate(CompoundNBT p_218080_0_)