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

    • of

      public static NbtPathArgument.NbtPath of(String path) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • get

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

      public int countMatching(Tag tag)
    • getOrCreateParents

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

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

      private static int apply(List<Tag> tags, Function<Tag,Integer> function)
    • isTooDeep

      public static boolean isTooDeep(Tag p_tag, int currentDepth)
    • set

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

      private int estimatePathDepth()
    • insert

      public int insert(int index, CompoundTag rootTag, List<Tag> tagsToInsert) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • remove

      public int remove(Tag tag)
    • createNotFoundException

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

      public String toString()
      Overrides:
      toString in class Object
    • asString

      public String asString()