hp12138 | Tinkers EMI Fix
Create a server, get 25% off your first month

Tinkers EMI Fix
A lightweight client-side compatibility patch that fixes recipe display crashes, missing widgets, broken tooltips, and dropped recipes when using Tinkers' Construct 3.12+ together with EMI (JEMI) and JEI 15.x.
What This Mod Fixes
Tinkers' Construct 3.12.0+ updated its JEI integration to newer JEI 15.x APIs that EMI's built-in JEMI compatibility layer (1.1.24) does not yet implement. This mod patches JEMI at runtime to bridge the missing APIs:
- Melting, Foundry, Casting, Alloy, Molding, Part Builder & Modifier Recipes: Implements missing
IRecipeExtrasBuildermethods (addAnimatedRecipeArrowWidget,addDrawableWidget,addRecipeArrowWidget,addRecipePlusSignWidget,addAnimatedRecipeFlameWidget,addTooltipArea,addButton,addCycleButton) and fixesAbstractMethodErrorcrashes. - Recipe Text Rendering: Fixes JEMI
addTextwidgets not being rendered and adds missingITextWidgetposition/tooltip methods so melting temperatures, entity melting damage, and modifier details display properly. - Fluid & Fuel Tooltips: Implements
ITooltipBuildermethods (getLines,clear,clearIngredient,addKeyUsageComponent) with live synchronization, fixingAbstractMethodErrorwhen hovering over fluids or fuels in Tinkers' recipes. - Dynamic Melting Time Tooltips: Supplies a real
IRecipeSlotDrawablesViewtoJemiRecipeExtrasBuilderinstead ofnull, preventingNullPointerExceptionon dynamic melting recipes. - Entity Melting & Severing Recipes: Safely skips
nullplaceholder entries inJemiIngredientAcceptorso entity melting and severing recipes are no longer dropped during EMI reload. - Additional JEI 15.x Compatibility: Implements remaining missing JEMI interface methods on
IRecipeLayoutBuilder,IRecipeSlotView,IRecipeSlotBuilder,IRecipeSlotDrawable,IScrollBoxWidget, andIScrollGridWidget.
Notes
- Client-side patch only; mixins only activate when both EMI and JEI are installed.
- Intended as a compatibility bridge until EMI natively updates its JEMI layer.
License
All Rights Reserved.
匠魂 EMI 兼容修复(Tinkers EMI Fix)
一款轻量的客户端兼容修复模组,专门解决 匠魂 3(Tinkers' Construct 3.12+) 与 EMI(内置 JEMI 兼容层) 及新版 JEI 15.x 同装时出现的冶炼配方显示异常、悬停流体报错以及部分配方丢失问题。
修复内容
匠魂 3.12.0+(如 3.12.0.220、3.12.1.231)已迁移至新版 JEI 15.x API,而 EMI 1.1.24 内置的 JEMI 兼容层尚未实现这些新增接口。本模组在运行时为 JEMI 补齐缺失实现:
- 修复冶炼、熔铸炉、铸造、合金、模具、部件与强化配方异常:补齐
IRecipeExtrasBuilder缺失的 8 个新版控件方法(含addAnimatedRecipeArrowWidget、addDrawableWidget、addRecipeArrowWidget、addTooltipArea等),解决Exception adding JEMI extras导致的AbstractMethodError。 - 修复配方文字不显示与报错:补齐
ITextWidget缺失的定位与提示方法,并修复 JEMIaddText未加入渲染列表的问题,使熔炼温度、实体熔炼伤害、强化信息等正常显示。 - 修复悬停流体与燃料槽位崩溃:补齐
ITooltipBuilder的getLines、clear、clearIngredient、addKeyUsageComponent并实时同步提示行,解决悬停液体槽位时FluidTooltipCallback.onRichTooltip抛出的AbstractMethodError。 - 修复动态熔炼时间配方空指针:为
JemiRecipeExtrasBuilder传入真实的槽位视图而非null,避免动态熔炼配方获取命名流体槽时触发NullPointerException。 - 修复实体熔炼与肢解(斩首)配方丢失:在
JemiIngredientAcceptor中安全跳过用于对齐聚焦的null刷怪蛋占位符,防止 EMI 重载时因空指针丢弃实体熔炼与肢解配方。 - 补齐其余 JEI 15.x 接口缺口:同步补全
IRecipeLayoutBuilder、IRecipeSlotView、IRecipeSlotBuilder、IRecipeSlotDrawable、IScrollBoxWidget、IScrollGridWidget上缺失的新版方法,一并惠及其他使用新版 JEI API 的模组。
说明
- 纯客户端兼容补丁,仅在同时安装 EMI 与 JEI 时启用 Mixin。
- 作为 EMI 官方更新 JEMI 兼容层前的过渡修复方案。
许可协议
All Rights Reserved(保留所有权利)。