Class NBTPathArgument

  • All Implemented Interfaces:
    com.mojang.brigadier.arguments.ArgumentType<NBTPathArgument.NBTPath>

    public class NBTPathArgument
    extends java.lang.Object
    implements com.mojang.brigadier.arguments.ArgumentType<NBTPathArgument.NBTPath>
    • Field Detail

      • EXAMPLES

        private static final java.util.Collection<java.lang.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 Detail

      • NBTPathArgument

        public NBTPathArgument()
    • Method Detail

      • 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_,
                                                            java.lang.String p_218083_1_)
                                                     throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • readUnquotedName

        private static java.lang.String readUnquotedName​(com.mojang.brigadier.StringReader p_197151_0_)
                                                  throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • getExamples

        public java.util.Collection<java.lang.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 java.util.function.Predicate<INBT> createTagPredicate​(CompoundNBT p_218080_0_)