Documentation
¶
Overview ¶
Package legacy reads MCEdit-format `.schematic` files and maps the pre-1.13 numeric (block ID, data value) tuples to Java-edition state strings via a vendored table from EngineHub/WorldEdit.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lookup ¶
Lookup returns the Java state string for a pre-1.13 (id, data) tuple. The table includes id=0 (air); callers don't need a special case.
func Scan ¶
Scan parses a legacy MCEdit `.schematic` from r and calls yield for each translated block without materialising a full schem.Schematic.Blocks slice.
func ScanWithInfo ¶
func ScanWithInfo(r io.Reader, onInfo schem.InfoHandler, yield schem.BlockHandler) (schem.ScanInfo, error)
ScanWithInfo parses a legacy MCEdit `.schematic` from r, calls onInfo once after dimensions are known, then calls yield for each translated block.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.