@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
20 lines (19 loc) • 789 B
TypeScript
import NbtBinaryTag from "./NbtBinaryTag";
import INbtTag from "./INbtTag";
import { IErrorMessage, IErrorable } from "../core/IErrorable";
export default class NbtBinary implements IErrorable {
roots: NbtBinaryTag[] | null;
context?: string;
isInErrorState?: boolean;
errorMessages?: IErrorMessage[];
static readonly MAX_ARRAY_LENGTH = 10000000;
static readonly MAX_STRING_LENGTH = 1000000;
get singleRoot(): NbtBinaryTag;
private _pushError;
private _getVarInt;
getJsonString(): string;
getJson(): INbtTag;
toBinary(): Uint8Array | undefined;
ensureSingleRoot(): NbtBinaryTag;
fromBinary(data: Uint8Array, littleEndian: boolean, isVarint: boolean, skipBytes?: number, stringsAreASCII?: boolean, processAsList?: boolean): number;
}