Class NbtPathArgument.NbtPath

java.lang.Object
net.minecraft.commands.arguments.NbtPathArgument.NbtPath
Enclosing class:
NbtPathArgument

public static class NbtPathArgument.NbtPath extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • get

      public List<Tag> get(Tag p_99639_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • countMatching

      public int countMatching(Tag p_99644_)
    • getOrCreateParents

      private List<Tag> getOrCreateParents(Tag p_99651_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getOrCreate

      public List<Tag> getOrCreate(Tag p_99641_, Supplier<Tag> p_99642_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • apply

      private static int apply(List<Tag> p_99636_, Function<Tag,Integer> p_99637_)
    • isTooDeep

      public static boolean isTooDeep(Tag p_263392_, int p_263386_)
    • set

      public int set(Tag p_169536_, Tag p_169537_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • estimatePathDepth

      private int estimatePathDepth()
    • insert

      public int insert(int p_263397_, CompoundTag p_263348_, List<Tag> p_263419_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • remove

      public int remove(Tag p_99649_)
    • createNotFoundException

      private com.mojang.brigadier.exceptions.CommandSyntaxException createNotFoundException(NbtPathArgument.Node p_99627_)
    • toString

      public String toString()
      Overrides:
      toString in class Object