Interface ExtractSNBTResultWithErrors

The result of the extractSNBT function when ParseSNBTBaseOptions.keepGoingAfterError is true.

interface ExtractSNBTResultWithErrors {
    endPos: number;
    errors: SNBTParseError<boolean>[];
    remaining: string;
    startPos: number;
    value: List<TagType> | Compound;
}

Hierarchy (View Summary)

Properties

endPos: number

The end position of the parsed value in the input string.

errors: SNBTParseError<boolean>[]

The errors that occurred while parsing the input string.

remaining: string

The remaining text after the parsed value.

startPos: number

The start position of the parsed value in the input string.

The parsed value.