zh_cn:tutorial:loader04x
This is an old revision of the document!
Table of Contents
加载器0.4.x和你!
本文翻译质量不佳,请帮助完善翻译。
本教程列举了将模组更新到加载器 0.4.x(或更高版本)所需要做的事情。
架构更改
嵌套JAR
关于嵌套JAR的用途有很多疑惑。
嵌套JAR是:
- a solution to provide dependencies which are in the form of Fabric mods, allowing the loader to pick the best version matching a given modpack's sets of dependencies,
- a solution that allows you turning libraries into Fabric mods and avoiding conflicts where they are not cleanly shadowable or where there is good reason for a Fabric mod developer to be the authoritative versioning source,
- a potential solution to cleanly package subprojects/submodules of a mod in one “combined” JAR, while also allowing using them separately.
嵌套JAR不是:
- meant to be used on non-mod Java libraries,
- always the best solution for libraries which can be safely shadowed under a different package. Keep in mind that a Fabric mod ID can only exist once, meaning that potential version conflicts could prevent a pack from loading - shadowed libraries do not have this problem.
如有疑问,请参阅这个图表:
不兼容性
- 如果你的模组使用的是插件加载器,请将其放弃,改为采用入口点系统。
zh_cn/tutorial/loader04x.1627169964.txt.gz · Last modified: 2021/07/24 23:39 by solidblock