Module syntaxnbt

Class PathNodeNamed

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

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

    • PathNodeNamed

      public PathNodeNamed(String name)
      Constructs a new "Named Tag" path
      Parameters:
      name - name of the tag
  • 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