Class NbtPathStringParser

java.lang.Object
org.cyclops.cyclopscore.nbt.path.parse.NbtPathStringParser

public class NbtPathStringParser extends Object
A parser for strings within NBT path expressions in the form of "ab\"c".
  • Constructor Details

    • NbtPathStringParser

      public NbtPathStringParser()
  • Method Details

    • parse

      public static NbtPathStringParser.StringParseResult parse(String source, int pos)
      Parse a string that starts and ends with doubles quotes and; Can handle escape sequences within that string.
      Parameters:
      source - The source string
      pos - Where to start parse; The index of the opening double quote
      Returns:
      Parse result