{"name":"prismarine-recipe","version":"1.0.0","description":"Represent minecraft recipes","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/PrismarineJS/prismarine-recipe.git"},"peerDependencies":{"minecraft-data":"1.x"},"devDependencies":{"minecraft-data":"1.x"},"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":"a8ebf0aec51fb799cb6b0abd006432c348101b1c","_id":"prismarine-recipe@1.0.0","_shasum":"eead064751106111e06fe01afd057c31611dabf3","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"rom1504","email":"romain.rom1@gmail.com"},"maintainers":[{"name":"rom1504","email":"romain.rom1@gmail.com"}],"dist":{"shasum":"eead064751106111e06fe01afd057c31611dabf3","tarball":"http://registry-npm.ywwl.com/prismarine-recipe/download/prismarine-recipe-1.0.0.tgz","integrity":"sha512-NLTz39AyUoGzgYYbyuDcx8TVtbreJh8Sldd2NLdCMwULQ/NNbbo9f1t0Hu0QgrKHd4LxIGxDetlQ0rolz33Gkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHZ60o0uh4wa1EN14RbpbvTG57fFX4VmRWW7IZTPZk6HAiEAjZ1S6C9URfd9spsMjAwB1okhQqyQ7n+7xYY+sx5JHe8="}],"size":2269,"noattachment":false,"key":"/prismarine-recipe/-/prismarine-recipe-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/prismarine-recipe-1.0.0.tgz_1455924436050_0.6254464334342629"},"directories":{},"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":1455924438930,"_cnpm_publish_time":1455924438930,"dist-tags":{"latest":"1.5.0"}}