mc-anvil
Version:
A Typescript library for reading Minecraft Anvil format files and Minecraft NBT format files in the browser.
26 lines (25 loc) • 562 B
TypeScript
export declare enum TagType {
END = 0,
BYTE = 1,
SHORT = 2,
INT = 3,
LONG = 4,
FLOAT = 5,
DOUBLE = 6,
BYTE_ARRAY = 7,
STRING = 8,
LIST = 9,
COMPOUND = 10,
INT_ARRAY = 11,
LONG_ARRAY = 12
}
export declare type ListPayload = {
subType: number;
data: TagPayload[];
};
export declare type TagPayload = number | bigint | string | number[] | TagData[] | string[] | ListPayload | ArrayBuffer | null;
export declare type TagData = {
type: TagType;
name: string;
data: TagPayload | TagPayload[];
};