Class: SchematicParser
Defined in: packages/minerender/src/model/multiblock/SchematicParser.ts:9
Converts legacy Alpha .schematic NBT with numeric block IDs into modern block names and properties.
Constructors
Constructor
ts
new SchematicParser(): SchematicParser;Returns
SchematicParser
Methods
parse()
ts
static parse(
nbt,
customMappings?,
options?
): Promise<MultiBlockStructure>;Defined in: packages/minerender/src/model/multiblock/SchematicParser.ts:15
Parses a legacy schematic using custom mappings before the selected version's defaults. Keys are id:metadata; values are block states such as minecraft:oak_log[axis=x].
Parameters
| Parameter | Type |
|---|---|
nbt | NBT |
customMappings | Readonly<Record<string, string>> |
options | SchematicParserOptions |
Returns
Promise<MultiBlockStructure>