Module syntaxnbt

Class PathNodeList

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

public class PathNodeList extends PathNode
An NBT path node specifying all elements of a Named List or Array Tag
Author:
SyntaxError404
  • Constructor Details

    • PathNodeList

      public PathNodeList(String name)
      Constructs a new "All Elements of Named List or Array Tag" path
      Parameters:
      name - name of the list/array tag
    • PathNodeList

      protected PathNodeList()
      internal use only
  • Method Details

    • traverseSelf

      public List<Tag<?>> traverseSelf(Tag<?> tag)
      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:
      tag - 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