{"name":"prismarine-recipe","version":"1.3.1","description":"Represent minecraft recipes","main":"index.js","typings":"index.d.ts","scripts":{"test":"npm run lint","lint":"standard","fix":"standard --fix"},"repository":{"type":"git","url":"git+ssh://git@github.com/PrismarineJS/prismarine-recipe.git"},"peerDependencies":{"prismarine-registry":"^1.4.0"},"devDependencies":{"standard":"^17.0.0"},"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","gitHead":"807dfe747ca586abba07e70cc486840cf7fd69c7","_id":"prismarine-recipe@1.3.1","_nodeVersion":"14.0.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-xfa9E9ACoaDi+YzNQ+nk8kWSIqt5vSZOOCHIT+dTXscf/dng2HaJ/59uwe1D/jvOkAd2OvM6RRJM6fFe0q/LDA==","shasum":"e2da9cb55f1ab0dca9d3175f495f6e16a6fb4c99","tarball":"http://registry-npm.ywwl.com/prismarine-recipe/download/prismarine-recipe-1.3.1.tgz","fileCount":11,"unpackedSize":9207,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCj6Ns+RZSWMJwQ8+KeiVftmbAzjEYsh1Mc2EMNuFea2AIgI0mxiPn1yUHEG14aP/5zRjlYNs3m/24cmDnljYEAm0E="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjrck5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq7Zg//YcMKz1Yy9rDF7GJOeQL9OPzkbHb1SBr4R5OvECAuxK5rdtoE\r\nDw1XHSlUwm3iYPIT/4cvpilzhPM3++Bhq/jNCWnTAtI8yk3XzdwHfexYHk+R\r\nYIOiCq/ClQl0PkcCZD418HmxRR52G4l33i5jhBxxAjtyP110dt3T0tYBLBqG\r\n2WKcjvF+l+2f4TQ/fEE2gs1kO+YhtnEf9OEWFgaahfduJLzyk7xjNQSGI3DC\r\nM0ma/5sxSvdEchypFTIuW5wUCc2KoG6mBWmhKDiWi0zSjqT7B8WxagjoRf0N\r\n0d+7sdRbDKthBSISw/EFu3un21VBCIbluGA/aC4CBJpBfMlAChqQxVwqh7rq\r\naw7ZDxl0EFwS931P9g1OkwZ5g0v1fF3o091ePWd31gzMUFfInDVMPuHRZwpn\r\nCHTRm1dDDh/yR/19laIYUPo8l1pq8S9dFdVgyOA0YIMKenl0GE2UcvCjVWbQ\r\nK3p/+FqjWUsht12hlNcq4CtjvajvQPFZIp7eoCuUzwC56kNsBxiL+38PSDJ5\r\n7aNiU8Yt8WMbwDqmw7b3k8gn7QRdIaiysCvamXg5kVBGBg14xOlaPUfcbiT9\r\nU/8jOxBBAkR5F3Jbr5+eVjT9KS0RlPuS3uDHWRMELS3OGXSYbDYPSUZxyzmY\r\nqgGN0S38uFdCen2dXp6rX6ghilKpuABaAeM=\r\n=Ig7Z\r\n-----END PGP SIGNATURE-----\r\n","size":3398,"noattachment":false,"key":"/prismarine-recipe/-/prismarine-recipe-1.3.1.tgz"},"_npmUser":{"name":"rom1504","email":"romain.rom1@gmail.com"},"directories":{},"maintainers":[{"name":"rom1504","email":"romain.rom1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prismarine-recipe_1.3.1_1672333625101_0.005265280031250041"},"_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":1672333625247,"_cnpm_publish_time":1672333625247,"dist-tags":{"latest":"1.5.0"}}