Module syntaxnbt

Class PathNodeCompound

java.lang.Object
at.syntaxerror.syntaxnbt.path.PathNode
at.syntaxerror.syntaxnbt.path.PathNodeCompound

public class PathNodeCompound extends PathNode
An NBT path node specifying a "Named Compound Tag"
Author:
SyntaxError404
  • Constructor Details

    • PathNodeCompound

      public PathNodeCompound(String name, TagCompound tag)
      Constructs a new "Named Compound Tag" path
      Parameters:
      name - name of the tag
      tag - tag to search for
  • Method Details

    • traverseSelf

      public List<Tag<?>> traverseSelf(Tag<?> target)
      Description copied from class: PathNode
      Traverse through the tag's tree structure and return the matching tags. This does not respect the next node
      Specified by:
      traverseSelf in class PathNode
      Parameters:
      target - tag to traverse through
      Returns:
      the matching tags
    • stringify

      protected String stringify()
      Description copied from class: PathNode
      Stringifies only this node, without respecting the next node
      Specified by:
      stringify in class PathNode
      Returns:
      the string representation of this node