Skip to content

Commit

Permalink
New translations arguments.md (Chinese Simplified)
Browse files Browse the repository at this point in the history
  • Loading branch information
FabricMCBot committed Dec 28, 2024
1 parent f2a45b6 commit 6b71ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion translated/zh_cn/develop/commands/arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ description: 学习如何创建带有复杂参数的命令。
您需要在服务端和客户端都注册自定义参数类型,否则命令不会生效!
:::

您可以在你的模组的初始化方法 `onInitialize` 中使用 `ArgumentTypeRegistry` 类来注册:
你可以在你的模组[入口点](./getting-started/project-structure#entrypoints)中的初始化方法 `onInitialize` 中使用 `ArgumentTypeRegistry` 类来注册:

@[code lang=java transcludeWith=:::register_custom_arg](@/reference/latest/src/main/java/com/example/docs/command/FabricDocsReferenceCommands.java)

Expand Down

0 comments on commit 6b71ae6

Please sign in to comment.