FermiumBooter 是一个 mixin 模组工具,允许开发者在早期和晚期加载 mixin,从而修改通常无法修改的类。
当前功能包括:
-
将 mixin 排入队列以在早期和晚期应用,从而允许修改原版/Forge 类以及模组类
-
@MixinConfig 注解系统,用于扩展 Forge 的 @Config 系统,以便根据配置开关自动将 mixin 排入队列
-
通过配置注解系统进行可选的兼容性处理,允许开发者为特定 mixin 定义必需/不兼容的模组
-
当使用配置注解系统的 mixin 未能通过兼容性检查时,记录警告信息
-
当使用配置注解系统的 mixin 未能通过兼容性检查时,可选择强制禁用该 mixin
-
在游戏内(可禁用)渲染警告,当使用配置注解系统的 mixin 未能通过兼容性检查时显示
-
通过 Supplier 在应用之前启用/禁用已排入队列的 mixin,以便开发者控制可选 mixin
-
提供实用方法检查 ModID 是否存在,类似于 Loader.isModLoaded(),但可在 mixin 排队/早期 mixin 应用期间使用,而 Loader.isModLoaded() 在此阶段不可用
-
禁止其他 FermiumBooter 排入队列的 mixin 应用,用于测试或调整目的
-
阴影 Mixin 0.8.7 和 MixinExtras 0.4.1
开发者用法:
在你的 IFMLLoadingPlugin init 中,不要使用 "Mixins.addConfiguration("mixinConfigName")",而是使用 "FermiumRegistryAPI.enqueueMixin("mixinConfigName")"。
如果你将其注册为晚期加载的 mixin,请使用 "FermiumRegistryAPI.enqueueMixin(true, "mixinConfigName")"。
这就是全部所需操作,FermiumBooter 会处理其余部分。
对于前面描述的额外实用工具,所有功能均在代码中进行了文档化,并附有使用说明和目的解释。
如有任何问题/建议/请求,请发布到上面链接的 GitHub issue tracker。
需要与我联系或支持我?点击以下徽章:
FermiumBooter is a mixin mod utility to allow developers to load mixins both early and late, allowing for modifying classes that normally could not be modified otherwise.
Current features include;
-
Enqueue mixins to be applied both early and late, to allow for for modifying Vanilla/Forge classes, as well as mod classes
-
@MixinConfig annotation system to expand on the Forge @Config system, to allow for automatic mixin enqueue based on config toggles
-
Optional compatibility handling through the config annotation system to allow developers to define required/incompatible mods for specific mixins
-
Logged warnings when a mixin using the config annotation system fails compatibility checks
-
Optional forced mixin disabling when a mixin using the config annotation system fails compatibility checks
-
Ingame (disable-able) warning rendering when mixins using the config annotation system fail compatibility checks
-
Enable/disable enqueued mixins prior to application through the use of a Supplier, to allow developer control over optional mixins
-
Utility method to check if a ModID is present similar to Loader.isModLoaded() however usable during mixin enqueue/early mixin application unlike Loader.isModLoaded()
-
Disallow other FermiumBooter enqueued mixins from applying, for testing or tweaking purposes
-
Shadows Mixin 0.8.7 and MixinExtras 0.4.1
For developer usage:
In your IFMLLoadingPlugin init, instead of "Mixins.addConfiguration("mixinConfigName")", use "FermiumRegistryAPI.enqueueMixin("mixinConfigName").
If you are registering it as a late-loaded mixin use "FermiumRegistryAPI.enqueueMixin(true, "mixinConfigName")".
That is all that is required, and FermiumBooter takes care of the rest.
For additional utilities as described previously, all are documented in code with explanations of usage and purpose.
If you have any issues/suggestions/requests, please post them to the Github issue tracker linked above.
Need to get in contact with me, or want to support me? Click the badges below:
Need a server? Click the banner below and use code "fonny" for 25% off your first month with Bisect Hosting:

下载 FermiumBooter
下载 FermiumBooter
下载 FermiumBooter
下载 FermiumBooter
下载 FermiumBooter
下载 FermiumBooter
下载 FermiumBooter
下载 FermiumBooter
下载 FermiumBooter
下载 FermiumBooter
- 包含对 SpongeMixin的内存占用更新,该更新使 refmap 对象共享相同的映射,从而大幅减少此类对象的内存占用。仅在加载此模组的 mixin 版本时才有关联,而这种情况通常并不发生。感谢 landon 发现此问题!
- 同时修复了 CurseForge 上 1.6.4 版本的问题:文件名前的反引号被 CurseForge 自动移除。当然,这对 Modrinth 发布没有影响。
v1.6.4
- 修复了某些情况下使用
fermiumbooter作为库时,由于核心模组(coremods)过早排除而引发的问题 - 修复了在某些配置下
fermiumbooter.log无法正常工作的问题 - 添加了与 Mod-Director 的兼容性支持,强制其 Tweaker 尽早运行,以便 JAR 扫描可以直接找到下载的模组,无需重启
- 为简化操作,添加了不带 early/late 参数的
FermiumRegistryAPI.enqueue方法(感谢 kaox283!) - 现在使用更新版的 SpongeMixin,其中包含了 FabricMixin 的一些错误修复
- 新增配置选项,可将 FermiumBooter 的大部分日志信息移至
fermiumbooter.log,以帮助整合包开发者避免latest.log被刷屏。警告、错误和 Mixin 移除记录仍会同时输出到主日志文件中
v1.6.3
- 修复 #11 在某些配置下模组重复的问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧