{"name":"prismarine-recipe","version":"1.3.0","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":"11aebee18662223ef1e0b99f7e7f8a86c90c816a","_id":"prismarine-recipe@1.3.0","_nodeVersion":"14.0.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-1Omu4rZr1HXIGuT7BCdFq2REkrSvm7qGx+aGspLvsGHLqJCI26ZNjqOUQ2PL16TfdEBIPwE6v5JNGRGbvXA9gQ==","shasum":"833ea8a939e20ffb508dd9e07ea6b60f0c0b2f31","tarball":"http://registry-npm.ywwl.com/prismarine-recipe/download/prismarine-recipe-1.3.0.tgz","fileCount":10,"unpackedSize":9050,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpZn9TsdAjhDVLClKZVJJ4EKJfuTH1TwAaoN15sEwz0QIgG14gHKhJ4zJ3p+1I7S9wkEqX6j58WidPd0ilDqEsFAg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRX+/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmol6A/9GDZirEYiBNAvt9rZx5N72xtL7MGA3HhRmUu1iSbGr+zIFBYW\r\nZOrvC86o5nPNjXzeFNiv8t/M7hup3DoTn+Eu+gMZL8mIYmKSxD1GX1JU9QkS\r\nHM/jtu7KQHP9sDve2jAP3biWfy7QKTf6kpF/cRfB75fDiv+C4jkZS7ucC3UO\r\n5l8wispzpaTSdCy0lhTbLU+MEagy6UP7Oq41XJ0Urio41qxQWfPs+4qTxdow\r\n4e5niuw3HxBSvz8+Zxd6fTD8Aj4V0VlKXOVCTWUD9n3T6NU9TcTGXEuU0cRh\r\n5opzvuw/4MTuioZaFUEFfFKqJK26uocAmQsdNkZkeUqhhHWx2IYgq8uSVu8k\r\ntltxJIPxtG8iuOyNZ+8I8pA7gp2GWXBEXZ7xVy74oPqB7p5FO+nwrFsjErej\r\n19qNuwXzNWeguUHDtczbOuursSPU4WL86JT7by5NjslABn4gr6LO9XT/VfWa\r\nL4WOgBFgii1BPW8h18UUElDHHj4qhI9Eh6CJ/NyIH24D03l2x1I4L1AaJxXV\r\n4PLBR1IOpsTyH1xFTk6H5vnSuimmxaxCyuT93/EihXi4iIlN5cRsDl+oiSOY\r\nMN9FdKwLGUUAP1FDSdOErLdtSbgxaCN4dDAas+TZvQbxc4B/TwN2m+a1+4bV\r\n6LHN6+pH4Fg0pSdGGk3T3drMGijH2m8ZudM=\r\n=xw+K\r\n-----END PGP SIGNATURE-----\r\n","size":3310,"noattachment":false,"key":"/prismarine-recipe/-/prismarine-recipe-1.3.0.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.0_1665499071183_0.18357574331283644"},"_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":1665499071322,"_cnpm_publish_time":1665499071322,"dist-tags":{"latest":"1.5.0"}}