Skip to content

Commit

Permalink
it is a getter
Browse files Browse the repository at this point in the history
  • Loading branch information
friendlyhj committed May 18, 2022
1 parent 4b7628b commit 925295d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion advanced/traversal.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
例子一:删除一个物品所参与的所有合成配方

```csharp
for recipe in recipes.all() { // 遍历游戏内所有注册配方
for recipe in recipes.all { // 遍历游戏内所有注册配方
//用ICraftingRecipe的ingredients1D ZenGetter获取配方的材料,返回IIngredient[]
if (recipe.ingredients1D has <minecraft:iron_ingot>) {
recipes.removeByRecipeName(recipe.name);
Expand Down

0 comments on commit 925295d

Please sign in to comment.