数据包/ShapedRecipe:修订间差异

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

2022年9月9日 (五) 14:12的版本

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