Module syntaxnbt

Class PathNodeListTag

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

public class PathNodeListTag extends PathNode
An NBT path node specifying Compound Elements of a Named List Tag
Author:
SyntaxError404
  • Constructor Details

    • PathNodeListTag

      public PathNodeListTag(String name, TagCompound tag)
      Constructs a new "Compound Elements of Named List Tag" path
      Parameters:
      name - name of the list/array tag
      tag - tag to search for
    • PathNodeListTag

      protected PathNodeListTag(TagCompound tag)
      internal use only
      Parameters:
      tag - tag to search for
  • 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