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 pPath) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • get

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

      public int countMatching(Tag pTag)
    • getOrCreateParents

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

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

      private static int apply(List<Tag> pTags, Function<Tag,Integer> pFunction)
    • isTooDeep

      public static boolean isTooDeep(Tag pTag, int pCurrentDepth)
    • set

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

      private int estimatePathDepth()
    • insert

      public int insert(int pIndex, CompoundTag pRootTag, List<Tag> pTagsToInsert) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • remove

      public int remove(Tag pTag)
    • createNotFoundException

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

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

      public String asString()