下载量
1,131,828
关注数
33
数据来源
Modrinth
模组详细介绍
MixinBooter
让任何作用于模组的 mixin 都能轻松在 1.8 - 1.12.2 上运行
- 当前 MixinExtra 版本:0.5.0
给开发者:
- 添加 CleanroomMC 的仓库,并依赖 MixinBooter 的 maven 条目:
repositories {
maven {
url 'https://maven.cleanroommc.com'
}
}
dependencies {
// Common:
annotationProcessor 'org.ow2.asm:asm-debug-all:5.2'
annotationProcessor 'com.google.guava:guava:32.1.2-jre'
annotationProcessor 'com.google.code.gson:gson:2.8.9'
// ForgeGradle:
implementation ('zone.rong:mixinbooter:10.7') {
transitive = false
}
annotationProcessor ('zone.rong:mixinbooter:10.7') {
transitive = false
}
// RetroFuturaGradle:
String mixinBooter = modUtils.enableMixins('zone.rong:mixinbooter:107')
// modUtils.enableMixins('zone.rong:mixinbooter:10.7', 'mod_id.mixins.refmap.json') << 将 refmap 名称作为第 2 个参数添加(可选)
api (mixinBooter) {
transitive = false
}
annotationProcessor (mixinBooter) {
transitive = false
}
}
伪更新日志:
- 自 4.2 起,MixinBooter 的 API 已发生变化,所有使用 mixin 的模组 都建议依赖 MixinBooter,甚至包括那些注入 vanilla/forge/库类的模组。这样可以避免模组在尝试实现针对模组的 mixin 时因 mixin 版本不匹配而崩溃(说的就是你,VanillaFix)。感谢 @embeddedt 推荐并帮助我引入这一改动!
- 自 5.0 起,由 @LlamaLad7 制作的 MixinExtras 已被 shaded。开发者可以直接使用。
- 自 8.0 起,MixinBooter 现在可在 1.8 - 1.12.2 上运行。一个构建即可适配所有这些版本!(TODO:支持 LiteLoader?)
- 自 8.4 起,MixinBooter 会主动尝试兼容 SpongeForge
- 自 9.2 起,MixinBooter 为 1.8.x 用途恢复了旧版的 MixinLoader 注解。
- 自 10.0 起,MixinBooter 跟随 Mixin 0.8.7
补充说明:
- 对于会影响 vanilla、forge,或任何非常早就会传递给类加载器的类(例如 Guava)的 mixin,请参阅
IEarlyMixinLoader。 - 对于会影响模组的 mixin,请参阅
ILateMixinLoader。 -
@MixinLoader注解的 ~~,自 4.2 起,已弃用。该~~ 功能类似于ILateMixinLoader。两者可以同时使用,尤其是在需要它的 1.8.x 版本中。
基本信息
模组名称MixinBooter
作者Cleanroom
下载量1,131,828
关注数33
支持版本1.8 - 1.12.2
加载器forge
客户端required
服务端required