Class NBTPathArgument.NBTPath

  • Enclosing class:
    NBTPathArgument

    public static class NBTPathArgument.NBTPath
    extends java.lang.Object
    • Field Detail

      • original

        private final java.lang.String original
      • nodeToOriginalPosition

        private final it.unimi.dsi.fastutil.objects.Object2IntMap<NBTPathArgument.INode> nodeToOriginalPosition
    • Method Detail

      • get

        public java.util.List<INBT> get​(INBT p_218071_1_)
                                 throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • countMatching

        public int countMatching​(INBT p_218069_1_)
      • getOrCreateParents

        private java.util.List<INBT> getOrCreateParents​(INBT p_218072_1_)
                                                 throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • getOrCreate

        public java.util.List<INBT> getOrCreate​(INBT p_218073_1_,
                                                java.util.function.Supplier<INBT> p_218073_2_)
                                         throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • apply

        private static int apply​(java.util.List<INBT> p_218075_0_,
                                 java.util.function.Function<INBT,​java.lang.Integer> p_218075_1_)
      • set

        public int set​(INBT p_218076_1_,
                       java.util.function.Supplier<INBT> p_218076_2_)
                throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • remove

        public int remove​(INBT p_218068_1_)
      • createNotFoundException

        private com.mojang.brigadier.exceptions.CommandSyntaxException createNotFoundException​(NBTPathArgument.INode p_218070_1_)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object