{"name":"prismarine-provider-anvil","version":"2.1.0","description":"Anvil Storage Provider implementation.","main":"index.js","scripts":{"test":"mocha test/","pretest":"npm run lint","lint":"standard"},"repository":{"type":"git","url":"git+https://github.com/PrismarineJS/prismarine-provider-anvil.git"},"keywords":["minecraft","voxel","chunk","world","prismarine"],"author":{"name":"Romain Beaumont","email":"romain.rom1@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/PrismarineJS/prismarine-provider-anvil/issues"},"homepage":"https://github.com/PrismarineJS/prismarine-provider-anvil","devDependencies":{"buffer-equal":"^1.0.0","flatmap":"0.0.3","minecraft-data":"^2.0.0","mkdirp":"^0.5.1","mocha":"^3.1.2","range":"0.0.3","rimraf":"^2.5.0","standard":"^11.0.1"},"dependencies":{"node-promise-es6":"^0.3.2","prismarine-chunk":"^1.9.0","prismarine-nbt":"^1.2.0","uint4":"^0.1.2","vec3":"^0.1.3"},"gitHead":"2e4e2831d5866cac299294d5f7ff8df3401d0b5b","_id":"prismarine-provider-anvil@2.1.0","_npmVersion":"6.0.1","_nodeVersion":"10.1.0","_npmUser":{"name":"rom1504","email":"romain.rom1@gmail.com"},"dist":{"integrity":"sha512-cifqVZojB86bGJkmo01zBar30DBOWUHmI/zXSk2VYe/Dr/kEK7x7ltSiTN0/RH63wJS0HkUGZt0YVFxHbkzKpg==","shasum":"dc15760fcb68eadbe91cf889b54961ab099721f5","tarball":"http://registry-npm.ywwl.com/prismarine-provider-anvil/download/prismarine-provider-anvil-2.1.0.tgz","fileCount":15,"unpackedSize":25827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbCoVCCRA9TVsSAnZWagAAeugQAIV8G0McCRy32Pk/APFe\nJFw1+K+AJbuhogYhl0vF6YdCwbSisv4r/iGQ/e1bLo3v0aLpNk86LM4SXA8O\nGJP+xJrl5kIcJMwjuhz83Q6zojGa9KE+G8NL4DRuhlvOzNy9pZ2E5bJZxDKl\nRf20D0jaeF7m/ICjZS8tUS9Kn1KBFL+2zTIz0f00wOCjZ1JmEFvawHYXlcaF\niVH8K/JhNWN66ap5SgOwFDQ5PAbcFh6Pe+Du7gKmvvz7lVWW0ENIV8QjRZs1\nQ6//pUBUaTJncFYt2u3tCI6YFCeztxu6jGXs6Yrze0DcbC4NIAjZlfZmGIq+\noXosz0RFESafabILt+LX+24IK5AaqzjPa+2GcH9WUyKp8IO/+CvbQgdeM931\nWnAxgv6o0vExyugAt3t3O9Zm5yVSJkAJ/8W+Aopw/KzGOXHKRR6Z610dgvMa\nsUlFwvxlnRx5vv30uiAzqulQut3ohIfL/jG7WKeuKqK6nI2JSJLraVhBh6qK\n1HmTBFeMzi1J7x6pk+u4yLo3m6Phcw0uCFA9vxbFwcsKamcAJEIBfcittVPQ\nu3o67BsH9S3A5o/REs1EKoot934DrZ1ocfIZXR67d85/BG2/tUdW9w8eA1Bi\nk8njRA2zXiUQD9fXp1CzoZn6OBUNNv7wsYGt3ZDWaH5lVhNeqc52i10gU9/0\nky4Z\r\n=b8K7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGsUwcQHtXWhBfneP5v7jBq4T7yeYbVsZEgoDqFwRDVDAiByWzZnafe7wn5ipLMOdxpIJ1yorSdQdqi0JZBOHwFi/A=="}],"size":7009,"noattachment":false,"key":"/prismarine-provider-anvil/-/prismarine-provider-anvil-2.1.0.tgz"},"maintainers":[{"name":"rom1504","email":"romain.rom1@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prismarine-provider-anvil_2.1.0_1527416130261_0.8050346908893713"},"_hasShrinkwrap":false,"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 and 1.18\n\n## Usage\n\nSee [examples](examples)\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.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":1527416130314,"_cnpm_publish_time":1527416130314,"dist-tags":{"latest":"2.13.0"}}