
Implementation of JEI's IRecipeCategory results in error with Just Enough Calculation
whizzball1 opened this issue ยท 1 comments
Just Enough Calculation, a mod like EMI but with an 'inventory' that can accept recipes from JEI, encounters serious errors attempting to transfer GregTech recipes from JEI. It cannot do so because it relies on all JEI recipes somehow going back to the Minecraft Recipe
type. When GregTech registers its JEI RecipeTypeCategory
s here, it uses LDLib's ModularUIRecipeCategory
.
ModularUIRecipeCategory
accepts a T type T extends ModularWrapper<?>
which, notably, does not in any way extend Minecraft's Recipe
type.
In contrast, other mods like EnderIO implement IRecipeCategory
using a type that extends Recipe
. An example is TankCategeory
, which accepts TankRecipe
which extends Recipe
(through EnderRecipe
).
It happens that GregTech's actual recipes (GTRecipe
) do extend Recipe
, but in order to use LDLib's JEI Recipe Category feature, it sticks its perfectly normal Recipe
s into the class GTRecipeWrapper
which extends LDLib's ModularWrapper<Widget>
.
TL;DR: LDLib implements JEI's IRecipeCategory
in a way that does not ultimately reference Minecraft's Recipe
type. This causes problems for any mods which want to work universally with all recipes, like Just Enough Calculation.