{"name":"prismarine-provider-anvil","version":"2.11.0","keywords":["minecraft","voxel","chunk","world","prismarine"],"author":{"name":"Romain Beaumont","email":"romain.rom1@gmail.com"},"license":"MIT","_id":"prismarine-provider-anvil@2.11.0","maintainers":[{"name":"rom1504","email":"romain.rom1@gmail.com"}],"homepage":"https://github.com/PrismarineJS/prismarine-provider-anvil","bugs":{"url":"https://github.com/PrismarineJS/prismarine-provider-anvil/issues"},"dist":{"shasum":"99120ed7e3a6ccfac9e4e13fb59abd77a2e8e322","tarball":"http://registry-npm.ywwl.com/prismarine-provider-anvil/download/prismarine-provider-anvil-2.11.0.tgz","fileCount":39,"integrity":"sha512-AD1gZm14H1yiW1BcPLXcInaUX9aaTrjhxrimTE72NwuF0PBnNdMS8CZf36gPCoj6h2gr4hSKcaTC4fy9k5k8mQ==","signatures":[{"sig":"MEQCICqHSoBVrgQCFATAVf/WW8lcXxIQIZggviJy78a6TZN9AiAErusFHyHhKCJW5gq4Jj2ARilXI0oNI/vugpooKTqBLA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16166440,"size":8499165,"noattachment":false,"key":"/prismarine-provider-anvil/-/prismarine-provider-anvil-2.11.0.tgz"},"main":"index.js","gitHead":"90fd9d7d307125278da9f9d728dcd9aeb7e1e54a","scripts":{"fix":"standard --fix","lint":"standard","test":"npm run mochaTest","pretest":"npm run lint","mochaTest":"mocha test/"},"typings":"src/index.d.ts","_npmUser":{"name":"rom1504","email":"romain.rom1@gmail.com"},"repository":{"url":"git+https://github.com/PrismarineJS/prismarine-provider-anvil.git","type":"git"},"_npmVersion":"8.6.0","description":"Anvil Storage Provider implementation.","directories":{},"_nodeVersion":"18.0.0","dependencies":{"vec3":"^0.1.6","uint4":"^0.1.2","prismarine-nbt":"^2.0.0","prismarine-chunk":"^1.29.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^11.0.1","range":"0.0.3","flatmap":"0.0.3","standard":"^17.0.0","buffer-equal":"^1.0.0","minecraft-data":"^3.0.0","prismarine-registry":"^1.1.0","prismarine-provider-anvil":"file:."},"_npmOperationalInternal":{"tmp":"tmp/prismarine-provider-anvil_2.11.0_1735727275932_0.8151689743681272","host":"s3://npm-registry-packages-npm-production"},"readme":"# prismarine-provider-anvil\n[![NPM version](https://img.shields.io/npm/v/prismarine-provider-anvil.svg)](http://npmjs.com/package/prismarine-provider-anvil)\n[![Build Status](https://github.com/PrismarineJS/prismarine-provider-anvil/workflows/CI/badge.svg)](https://github.com/PrismarineJS/prismarine-provider-anvil/actions?query=workflow%3A%22CI%22)\n\nAnvil Storage Provider implementation. Support minecraft pc 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19, 1.20 and 1.21\n\n## Usage\n\nSee [examples](examples)\n\n## Test\n\nRun single test with `npm run mochaTest -- -g \"saving and loading works 1.8.9 in sequence\"`\n\nAll tests with `npm test`\n\n## API\n\n### Anvil\n\n#### Anvil(path)\nBuild an anvil : provide loading and saving of chunks in all regions in `path`\n\n#### Anvil.save(x,z,chunk)\n\nTake a prismarine chunk and save it. Returns a promise.\n\n#### Anvil.saveRaw(x,z,nbt)\n\nTake a nbt object and save it. Returns a promise.\n\n#### Anvil.load(x,z)\n\nReturns a promise containing the prismarine chunk at x,z or null if that chunk isn't saved.\n\n#### Anvil.loadRaw(x,z)\n\nReturns a promise containing the nbt at x,z or null if that nbt isn't saved.\n\n#### Anvil.getAllChunksInRegion(x,z)\n\nReturns an promise of an array of all chunks in the region\n\n### level\n\n#### level.readLevel(path)\n\nReads a level.dat file\n\n#### level.writeLevel(path,value)\n\nWrites a level.dat file\n\n## History\n\n### 2.13.0\n* [Use sync zlib to avoid uncaught async errors (#98)](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/3820535cd1778bf0a451dd78c0fe3626dbd89cfb) (thanks @rom1504)\n\n### 2.12.0\n* [Update CI to Node 24 (#95)](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/8d880ae3dc09dcc21d5079ef2ea5043a8539f61c) (thanks @rom1504)\n* [Fix publish condition for npm-publish v4 (#94)](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/35292f5f61b5f77f02a36b77bec1fbeab63f32d9) (thanks @rom1504)\n* [Switch to trusted publishing via OIDC (#93)](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/0202210ed234a3d7efabb3698f90dcbfb72ac468) (thanks @rom1504)\n* [node 22 (#91)](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/cfc8ef4c6aa95fb3303fee80d32639023be110b8) (thanks @rom1504)\n* [Test all region files instead of only first one (#88)](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/55fda80b6360aaef6056ab8b54caed0d14ac4096) (thanks @zardoy)\n\n### 2.11.0\n* [Update npm-publish.yml](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/9bf7e1f80a679caf3b25f5cdcaa3a58e7ddb4404) (thanks @rom1504)\n\n### 2.10.0\n* [Quick fix for pc1.17 masks (#85)](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/790db07d75d919f52056772c0998164b6587cd51) (thanks @extremeheat)\n* [Bump mocha from 10.8.2 to 11.0.1 (#83)](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/25da171b17f69e4252764931f8adba88b93f5a18) (thanks @dependabot[bot])\n* [pc1.14-1.17: Don't read empty sections (#84)](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/8ef34214f1221ac3e997ce2404634d3ae0c944c4) (thanks @extremeheat)\n\n### 2.9.0\n* [Support 1.18.2, 1.19.4, 1.20.6, 1.21.1 (#81)](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/19bb778da80bb600cac9ee9d9f47f1d477e9b0cd) (thanks @rom1504)\n* [Fix test versions. (#80)](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/6b0517ef64623d031b6dfbcd422bf0149d9cacc0) (thanks @rom1504)\n* [Default to biome minecraft:void (#76)](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/dc32ad7326a815ab7f110f52d07df20f5b68527a) (thanks @AnotherPillow)\n* [Handle optional palette in 1.14 chunk.js (#74)](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/844445b0bb4cd83a5047c3afd419a211b0805cbc) (thanks @rom1504)\n\n### 2.8.0\n* [require lazily (#70)](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/257f7fd2d995a54fe7e275909b264be106b95063) (thanks @zardoy)\n* [Make created level.dat loadable in singleplayer (#71)](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/2638bec1e8bca925e87a8a6a6b945417724fc4a1) (thanks @zardoy)\n* [Add command gh workflow allowing to use release command in comments (#69)](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/f3881cb11db3dbcfd6173bc32b89fb6d07da6185) (thanks @rom1504)\n* [Update to node 18.0.0 (#68)](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/68766beea0001a7e4833e086ebb903cd410c1eb6) (thanks @rom1504)\n* [Initial support for loading Add data to a block (#64)](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/8255f87a888e61c1b75089285e723c731e9e01c4) (thanks @BluSpring)\n* [Fix world height on 1.18+ chunks (#66)](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/59c1d72373f5c0b2d81a0618127e1e32f53ae135) (thanks @extremeheat)\n* [Bump mocha from 9.2.2 to 10.0.0 (#62)](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/e5814c0fc139fdc6b419f846d8a7d4083fe07edf) (thanks @dependabot[bot])\n* [Bump standard from 16.0.4 to 17.0.0 (#61)](https://github.com/PrismarineJS/prismarine-provider-anvil/commit/c2b4199f6fbd6569f3b859b652a3756cf4cc0a61) (thanks @dependabot[bot])\n\n### 2.7.0\n\n* Bump mcdata\n\n### 2.6.0\n\n* 1.18 support\n\n### 2.5.1\n\n* Ensure chunk status and data version are written for v1.13 (@Paulomart)\n\n### 2.5.0\n\n* Adds 1.17 support (thanks @Saiv46)\n* Write the chunk x and z position like vanilla does (@Paulomart)\n\n### 2.4.0\n\n* adds getAllChunksInRegion function (@U9G)\n* used exposed section instead of using internals of pchunk (@rom1504)\n\n### 2.3.2\n\n* Fix 1.16 palette issue\n\n### 2.3.1\n\n* Only store sections between 0 and 16 (block containing sections) (thanks @IdanHo)\n* remove node-promise-es6, and use fs.promises + util.promisify (thanks @IdanHo)\n\n### 2.3.0\n\n* 1.14, 1.15 and 1.16 support (thanks @IdanHo)\n\n### 2.2.0\n\n* 1.13 support (thanks @Karang)\n\n### 2.1.0\n\n* standardjs\n\n### 2.0.0\n\n* cross version support\n\n### 1.1.0\n\n* update dependencies, fix #10 (prismarine-nbt nbt.simplify was broken)\n\n### 1.0.1\n\n* update to babel6\n\n### 1.0.0\n\n* bump dependencies\n\n### 0.2.2\n\n* fix small bug with regionFileName call\n\n### 0.2.1\n\n* update prismarine-chunk\n* use nbt.simplify\n\n### 0.2.0\n\n* add level.dat loading/saving\n\n### 0.1.0\n\n* completely reimplement to provide full functionality :  loading and saving, and all the data in chunks\n\n### 0.0.2\n\n* use up to date dependencies in minecraft-region\n\n### 0.0.1\n\n* catch the error if the region file doesn't exist and return null in getRegion\n\n### 0.0.0\n\n* first version, basic functionality using minecraft-chunk, minecraft-region, prismarine-chunk and vec3\n","publish_time":1735727276701,"_cnpm_publish_time":1735727276701,"dist-tags":{"latest":"2.13.0"}}