{"name":"prismarine-recipe","version":"1.1.0","description":"Represent minecraft recipes","main":"index.js","typings":"index.d.ts","scripts":{"test":"npm run lint","lint":"standard"},"repository":{"type":"git","url":"git+ssh://git@github.com/PrismarineJS/prismarine-recipe.git"},"peerDependencies":{"minecraft-data":"^2.0.0"},"devDependencies":{"minecraft-data":"^2.0.0","standard":"^11.0.1"},"keywords":["minecraft","recipe"],"author":{"name":"Romain Beaumont","email":"romain.rom1@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/PrismarineJS/prismarine-recipe/issues"},"homepage":"https://github.com/PrismarineJS/prismarine-recipe#readme","_id":"prismarine-recipe@1.1.0","dist":{"shasum":"ba83fea0d6f5ad3be83398a20f85f7e800665732","integrity":"sha512-eFmriEWoe6S6OSVbOJnsXpaBuzeIzjaGymDUTCtrOu80734NWKI7outdLI6R2ztJ+f2PFIkFmpkazAdScStGNA==","tarball":"http://registry-npm.ywwl.com/prismarine-recipe/download/prismarine-recipe-1.1.0.tgz","fileCount":14,"unpackedSize":8565,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewFLtCRA9TVsSAnZWagAA41UP/3dH1ccNVsx4fwv/D7ME\ntG8nCanDA1FEK1WINEgo4017KQmWB0DBMO19CchhOYOVDTIH9jXZhGZUpQ2e\nKzL3ewLaozN8+KvyNUr1DepDQeuVIt0G9fUhU4OKYCyj1HO4EFfHIsiO0qzo\nNQyp88aeY7snTWIpIFvHKZYceU0Tlg9ZEp423G/4ceyfEQMvAcQx8HQ+C67u\nNjXqXJBZ1e9a5uZaIUEoYnRGrtvYbJTcs7N1wgf3bCNJhBK/AXs1FG7lHYen\npdifK0jqXfBgX/xDg1UgIm5czFq/qh9jA+O8CdB3U+SgPZY1pDdAbtl2FCoL\nN9N/M1SJ++/HE3sF0fag4NDG9JkCIbUojd046NToYDlQCbWoxfbCxraOGQiW\nYCzTESchKgQfCritig3oumNnvRLXHo6ZoEKMPLcI1Kx9o6E76pSOEGyM4iI4\nJsg+IUCZ0xhdc4qf1T8GVcjCtl2yGlFCKIJTjeOM8T3KNzy7MvfvJ72iI68Q\nwMBCyIRVwoNFh7dvrpty4JqLCEAdiYegULdc/8Cvb9r43EmoNrHdK+Qkehqi\nIuXEL+XQTiS0i2kurXGsqm2axx+FtbN4i7M+IXop4ZHm7BMg7hutShQY6cST\n9ADIBRcS44XZfW4Cr2ekSs8zIDFoc/O9/KtFSrB5jMbl0fxmPBDCMl6pJRxx\nm15h\r\n=iwH2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID5Q7BqO/mS/Bti2223AtVVX93UAWOdI8lUJTvOwYjFhAiA45MAFrmHnRJz4RCE7XAonAQynOUBcLEtFX9KSt1NWIg=="}],"size":3352,"noattachment":false,"key":"/prismarine-recipe/-/prismarine-recipe-1.1.0.tgz"},"maintainers":[{"name":"rom1504","email":"romain.rom1@gmail.com"}],"_npmUser":{"name":"rom1504","email":"romain.rom1@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prismarine-recipe_1.1.0_1589662445395_0.40632697754070146"},"_hasShrinkwrap":false,"readme":"# prismarine-recipe\n\n[![Build Status](https://github.com/PrismarineJS/prismarine-recipe/workflows/CI/badge.svg)](https://github.com/PrismarineJS/prismarine-recipe/actions?query=workflow%3A%22CI%22)\n\nRepresent minecraft recipes\n\n## Usage\n\n```js\nconst Recipe=require(\"prismarine-recipe\")(\"1.8\").Recipe;\n\nconsole.log(JSON.stringify(Recipe.find(5)[0],null,2)); // recipes for wood\n```\n\n## API\n\n### Recipe\n\n#### Recipe.find(itemType, [metadata])\n\nReturns a list of matching `Recipe` instances.\n\n * `itemType` - numerical id\n * `metadata` - metadata to match. `null` means match anything.\n\n#### recipe.result\n\nThe output item. It's a recipeItem :\n```js\n{\n  id:45,\n  metadata:3,\n  count:1\n}\n```\n\n#### recipe.inShape\n\nLooks like this:\n\n```js\n[\n  [recipeItem, recipeItem],\n  [recipeItem, recipeItem],\n  [recipeItem, recipeItem],\n]\n```\n\n#### recipe.outShape\n\nLooks the same as `inShape`. Only relevant for cake.\n\n#### recipe.ingredients\n\nList of shape-independent ingredients. Looks like this:\n\n```js\n[\n  recipeItem,\n  recipeItem\n]\n```\n\n#### recipe.requiresTable\n\nBoolean.\n\n#### recipe.delta\n\nMap of item type to how much more or less you will have after you use\nthe recipe.\n\nThis is what it looks like for the chest recipe:\n\n```js\n[\n  recipeItem,\n  recipeItem\n]\n```\n\n## History\n\n### 1.3.0\n\n* mcData to registry refactoring (@Epirito)\n* Fixed RecipeItemConstructor Type and default export (@psu-de)\n\n### 1.2.0\n\n* Bump mcdata\n\n### 1.1.0\n\n* typescript definitions (thanks @IdanHo)\n\n### 1.0.1\n\n* bump mcdata\n\n### 1.0.0\n\n* bump dependencies\n\n### 0.0.0\n\n* Import from mineflayer\n","publish_time":1589662445532,"_cnpm_publish_time":1589662445532,"dist-tags":{"latest":"1.5.0"}}