Interface ParseSNBTBaseOptions

Options for parsing SNBT.

interface ParseSNBTBaseOptions {
    convertMixedListsToCompoundLists?: boolean;
    keepGoingAfterError?: boolean;
    mixedListsAllowed?: boolean;
    stopAtNegativeDepth?: boolean;
}

Properties

convertMixedListsToCompoundLists?: boolean

Whether to convert lists of mixed types to compound lists.

true
keepGoingAfterError?: boolean

Whether to keep parsing the SNBT string even if there are errors.

It will cause the function to return an object containing the errors, as well as the parts of the value that were able to be extracted.

false
mixedListsAllowed?: boolean

Whether to allow lists of mixed types.

true
stopAtNegativeDepth?: boolean

Whether to stop parsing the SNBT string at a negative depth.

true