【文件属性】:
文件名称:prismarine-recipe:代表《我的世界》食谱
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-12 17:11:08
JavaScript
三棱胺配方
代表《我的世界》食谱
用法
const Recipe = require ( "prismarine-recipe" ) ( "1.8" ) . Recipe ;
console . log ( JSON . stringify ( Recipe . find ( 5 ) [ 0 ] , null , 2 ) ) ; // recipes for wood
原料药
食谱
Recipe.find(itemType,[元数据])
返回匹配的Recipe实例的列表。
itemType数字ID
metadata -要匹配的metadata数据。 null表示匹配任何内容。
配方结果
输出项目。 这是一个recipeItem:
{
id : 45 ,
metadata : 3 ,
count : 1
}
形状中的食谱
看起来像这样:
[
[ recipeIte
【文件预览】:
prismarine-recipe-master
----index.js(165B)
----package.json(801B)
----.github()
--------dependabot.yml(125B)
--------workflows()
----example.js(120B)
----index.d.ts(874B)
----.gitignore(30B)
----lib()
--------recipe_item.js(809B)
--------recipe.js(3KB)
----.npmrc(19B)
----README.md(1KB)