1.1.5 • Published 2 years ago

prismarine-provider-holo2 v1.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

prismarine-provider-holo2

Usage

Same ass prismarine-provider-raw

API

RawStorage

new RawStorage(path, compress = true, fs = null)

Create a new RawStorage instance which uses the folder at path for storage (Optionally disable zlib compression with compress). Arbitrary file system interface can be provided via fs (I none specified the default fs implementation is used)

RawStorage.save(x, z, chunk)

Store a prismarine-chunk chunk at pos x, y. Returns a promise.

RawStorage.load(x, z)

Load the prismarine-chunk at pos x, y. Returns a promise.

RawStorage.defrag()

Load and defrag all region files (reduces wasted storage space)

NOTE: there is no need to run this regularly

Format

This format is exactly the same as prismarine-provider-raw but with removed lighting and biome data