Skip to content

Class: NBTHelper ​

Defined in: packages/minerender/src/nbt/NBTHelper.ts:10

Decodes Named Binary Tag (NBT) data for structure and world parsers.

Constructors ​

Constructor ​

ts
new NBTHelper(): NBTHelper;

Returns ​

NBTHelper

Methods ​

fromBuffer() ​

ts
static fromBuffer(data, format?): Promise<NBTAsset>;

Defined in: packages/minerender/src/nbt/NBTHelper.ts:13

Parses NBT bytes and preserves format and compression metadata. Omit format for automatic detection.

Parameters ​

ParameterType
dataUint8Array | ArrayBuffer
format?NBTFormat

Returns ​

Promise<NBTAsset>