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。
需要与我联系或支持我?点击以下徽章:
需要服务器?点击下方横幅并使用代码 "fonny" 获得 Bisect Hosting 首月 25% 折扣:

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:

评论 0
登录后参与评分
还没有评论,来抢沙发吧