Module syntaxnbt

Class PathNodeSubList

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

public class PathNodeSubList extends PathNode
Author:
SyntaxError404
  • Constructor Details

    • PathNodeSubList

      public PathNodeSubList(String name, List<Optional<Integer>> indices, TagCompound tag)
      Constructs a new Sub-List/Array path for Named List Tag
      Parameters:
      name - name of the list tag
      indices - list of indices
      tag - final tag to search for (optional)
  • 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