{"name":"prismarine-recipe","version":"1.2.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":{"minecraft-data":"^3.0.0"},"devDependencies":{"minecraft-data":"^3.0.0","standard":"^16.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.2.0","dist":{"shasum":"95c223a37fc1047e4f8f619988d3923ec0c943f7","integrity":"sha512-ZkCtEi5xDS7tAJgDS/BxjvEYPAXusikcyIWYhPOpA6nslIUqWF5+QevC6FpNa3eQVdebgiNBQqHggcnI4xww5g==","tarball":"http://registry-npm.ywwl.com/prismarine-recipe/download/prismarine-recipe-1.2.0.tgz","fileCount":14,"unpackedSize":8818,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGvIggLot2VvQueIO+lG1i8s7xOx62zOgONKALksaBq6AiBEd02+8KwFMyKyX9OLkK0O5gxTPARAjoY3crNS699L5A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVAruACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpSJBAAo56wz/OiG2zFM2ZKV0TdnUtkP+Vt62Q/0Rgm5bn62kh7X4W9\r\nEG/jpJu2WpCnyB5d+fk4dIzEFBmnENqrIMJtKh8P27h0rBZiYYqq47wF6m3u\r\nF4JsaW0t+Jy+o/j69UZymuhir3tCuzzYESYQumJUbsfTk4bGcXXYBOV43SFm\r\nw19am4fC8lwdOVOqqyrCgAHz6LdN7a/fSJA1Nvqpk5v+dyuXC9zygkPKVOHd\r\nzV/G4l4DO/rYtVvKYT8RZJj3RyK7ZJEqVz9FsPeG1MK9TPsNX8D4hFt5HKFc\r\nzQtgG+0Rf+PDJr6d8CADHIFp5wcIBKufGOOHWNjM/I8rlPI0gE3tYfMKKNuw\r\nsDt97r/3Q6DolErEK31tAknXNCh6MfUE/p/MSmqrKXqs/F5ROHRiXrTGpWx4\r\nTHB4YTvjxoWXXd6n9uO6VF3ThzS1dycU6MlZmMy3SrGyUWLjEzTvScrRCz6P\r\ngKX/pRuDIdUE9B43AY6iBxmv8iQbvCswATHuYjm465GZielJR0kRB1M6LOTA\r\nvYre6HljTmX/VQFgSnVPa8QSk5fccsequHJJOsnKEuRqkAFzkf/hMUkOgx48\r\ncrcKmLTphML4p4CU/xGZX4x2WdNNURBpVNhI1aS/vax1NgC9Yf+/lA2fHcI2\r\ngYcbBbNyhDTen3fxppINb7aGyVMvuU+5fZY=\r\n=vPzS\r\n-----END PGP SIGNATURE-----\r\n","size":3433,"noattachment":false,"key":"/prismarine-recipe/-/prismarine-recipe-1.2.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.2.0_1649674990179_0.129550260057262"},"_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":1649674990502,"_cnpm_publish_time":1649674990502,"dist-tags":{"latest":"1.5.0"}}