zh_cn:tutorial:terms
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
zh_cn:tutorial:terms [2019/12/18 10:21] – created lightcolour | zh_cn:tutorial:terms [2020/11/04 08:27] – [Mod ID] fix machine translation solidblock | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | + | 在开始用fabric写mod之前,重要的是要了解以后的教程页面中使用的一些关键术语和短语。 了解诸如包结构和modid命名之类的基本约定也很好。 尽早了解这些内容将有助于您更好地理解教程,并在需要时提出更好的问题。 | |
- | Before starting with Fabric modding, it's important to understand some of the key terms and phrases used in future tutorial pages. It's also good to know basic conventions for things such as package structure and modid naming. Knowing these early will help you to understand tutorials better and enable you to ask better questions when needed. | + | |
==== Mod ID ==== | ==== Mod ID ==== | ||
- | Throughout the documentation, | ||
- | A mod ID is often a compact version of the name of the mod which makes it short but recognizeable and prevents naming conflicts. Conventionally, | + | 在整个文档中,我们通常会引用Mod ID或代码中的modid。 Mod ID代表'' |
+ | |||
+ | mod ID通常是mod名称的紧凑版本,使其简短但可识别并防止命名冲突。按照惯例,名为“My Project--”的项目可以称为'' | ||
+ | |||
+ | 一些入门教程将使用占位符mod ID并在占位符命名空间下注册物品和放块,您可以将其视为入门模板-尽管保持这个不变对测试影响不大,但请记住发布项目之前更改。 | ||
+ | |||
+ | ==== 标签 ==== | ||
+ | |||
+ | Tags are groups of blocks, items, or fluids with similar properties, i.e. '' | ||
+ | Information about what to call tags for your mod can be found [[tutorial: | ||
+ | |||
+ | Read more on what tags are on the [[https:// | ||
+ | |||
+ | ==== Entry Points and Initializers ==== | ||
+ | Fabric Loader use '' | ||
+ | |||
+ | A mod usually contains at least one initializer class which should implement one of '' | ||
+ | |||
+ | <code java> | ||
+ | { | ||
+ | [...] | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | } | ||
+ | [...] | ||
+ | } | ||
+ | </ | ||
- | Some of the starter tutorials will use a placeholder mod ID and register items and blocks under a placeholder namespace, and you can think of it as a starter template-- while leaving this unchanged is not dangerous | + | By implementing Mod Initializer interfaces, you must implement an '' |
- | ==== Tags ==== | + | Also, there is a block called '' |
- | Draft. Edit it. | + | |
- | Convention namespace for tags is '' | + | ==== Maven组和软件包名称 ==== |
- | ==== Maven Group & Package Names ==== | + | 根据Oracle的Java文档,它们以小写形式编写,以避免与类或接口的名称冲突。域名反过来用作启动名称。阅读更多[[https:// |
- | According to Oracle' | + |
zh_cn/tutorial/terms.txt · Last modified: 2022/03/20 13:33 by solidblock