数据包/ShapedRecipe:修订间差异

来自Minecraft基岩版开发Wiki
添加的内容 删除的内容
(文本替换 - 替换“{{bytes|*}}{{bytes|type”为“{{bytes|type”)
无编辑摘要
标签2017年版源代码编辑
第3行: 第3行:
** {{bytes|vint|width}}:配方的宽度。
** {{bytes|vint|width}}:配方的宽度。
** {{bytes|vint|height}}:配方的高度。
** {{bytes|vint|height}}:配方的高度。
** {{bytes|*}}{{bytes|vector|vector<vector<RecipeIngredient>>}}:配方成分的所有槽位,总共有“高度×宽度”个,按行索引从小到大排列。
** {{bytes|*}}{{bytes|vector|vector<vector<ingredient>>}}:配方成分的所有槽位,总共有“高度×宽度”个,按行索引从小到大排列。
*** {{bytes|*}}{{bytes|vector|vector<RecipeIngredient>}}:配方成分的某一行,总共有“宽度”个,按列索引从小到大排列。
*** {{bytes|*}}{{bytes|vector|vector<ingredient>}}:配方成分的某一行,总共有“宽度”个,按列索引从小到大排列。
**** {{bytes|type|ingredient}}:某个配方成分。
**** {{bytes|type|ingredient}}:某个配方成分。
***** {{Nbt inherit/packet/recipe_ingredient|indent=*****}}
***** {{Nbt inherit/packet/recipe_ingredient|indent=*****}}

2022年9月9日 (五) 23:50的版本

    •  recipeId:配方的ID。
    •  width:配方的宽度。
    •  height:配方的高度。
    •  vector<vector<ingredient>>:配方成分的所有槽位,总共有“高度×宽度”个,按行索引从小到大排列。
      •  vector<ingredient>:配方成分的某一行,总共有“宽度”个,按列索引从小到大排列。