Skip to content

Class: LitematicaParser ​

Defined in: packages/minerender/src/model/multiblock/LitematicaParser.ts:22

Reads v5–7 .litematic files without migrating block states or entity NBT.

Constructors ​

Constructor ​

ts
new LitematicaParser(): LitematicaParser;

Returns ​

LitematicaParser

Methods ​

parse() ​

ts
static parse(nbt): Promise<LitematicaStructure>;

Defined in: packages/minerender/src/model/multiblock/LitematicaParser.ts:30

Parses decoded NBT, preserving subregion placement and omitting air. Later entries in regions replace earlier cells, including with air. Size encloses all region bounds; positions retain the schematic origin. Metadata and scheduled ticks are not imported. Named regions can be placed individually.

Parameters ​

ParameterType
nbtNBT

Returns ​

Promise<LitematicaStructure>