概述
从 CensoredASM 2.3 开始起,需要 MixinBooter 作为前置。
模组简介:
使得任何 Mixin 的构建使用在 1.8 - 1.12.2 上也能轻松自如。
目前包括的 Mixin 版本为 UniMix 0.12.2 ( LegacyModdingMC 的 0.8.5 分支),与 UniMixins 相同。
包括的 MixinExtra 版本是 0.2.0-beta.9。
对于开发者:
你需要添加 CleanroomMC 的仓库并依赖 MixinBooter。如果使用了这个,则不需要再一次compile Mixin了
repositories {
maven {
url "https://maven.cleanroommc.com"
}
}
dependencies {
deobfCompile ("zone.rong:mixinbooter:8.3")
}
从 4.2 开始,MixinBooter 的 API 已经改变,所有使用 Mixin 的 Mods 都推荐使用 MixinBooter,甚至包括那些混入原版/Forge/Library 类的 mods,为了避免 Mixin 版本不匹配与尝试实现修改后的 Mixin 的模组发生崩溃(看看你 VanillaFix )。
从 5.0 开始,包括了 LlamaLad7 的 MixinExtras ,更方便开发者使用。
从 8.0 开始,MixinBooter 现已支持 1.8 - 1.12.2 的所有版本。
对于原版、Forge 或任何很早传递给 ClassLoader 的类(例如 Guava),请查看 IEarlyMixinLoader 和 IFMLLoadingPlugin。
对于第三方模组的 Mixin使用,请查看 ILateMixinLoader。
@MixinLoader 注解从 4.2 开始被废弃。它的功能与 LateMixinLoader 类似。
实际上你只需要实现MixinBooter的接口并且传递好信息就万事大吉了,比从coremod手动引导方便太多了