Interface NbtPath


@NonExtendable public interface NbtPath
A path into NBT, such as Inventory[{Slot:0b}].components.
Since:
0.1.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns this path as parseable text.
    Returns the tags this path matches under root, empty if any segment matches nothing.
  • Method Details

    • select

      List<BinaryTag> select(BinaryTag root)
      Returns the tags this path matches under root, empty if any segment matches nothing.
      Parameters:
      root - the tag to start from
      Returns:
      the tags this path matches under root, empty if any segment matches nothing
      Since:
      0.1.0
    • asString

      String asString()
      Returns this path as parseable text.
      Returns:
      this path as parseable text
      Since:
      0.1.0