Fix missing helpers in JEI

This commit is contained in:
KnightMiner committed 2020-08-06 00:00:07 -05:00
1 parent c6c4070c16
commit 2d243a41aa
1 file changed
+7
@@ -7,6 +7,7 @@ import mezz.jei.api.gui.ingredient.ICraftingGridHelper;
import mezz.jei.api.helpers.IModIdHelper;
import mezz.jei.api.recipe.IRecipeManager;
import mezz.jei.api.registration.IGuiHandlerRegistration;
import mezz.jei.api.registration.IRecipeRegistration;
import mezz.jei.api.registration.IVanillaCategoryExtensionRegistration;
import mezz.jei.api.runtime.IJeiRuntime;
import net.minecraft.client.renderer.Rectangle2d;
@@ -44,6 +45,12 @@ public class JEIPlugin implements IModPlugin {
});
}
@Override
public void registerRecipes(IRecipeRegistration registry) {
vanillaCraftingHelper = registry.getJeiHelpers().getGuiHelper().createCraftingGridHelper(1);
modIdHelper = registry.getJeiHelpers().getModIdHelper();
}
@Override
public void onRuntimeAvailable(IJeiRuntime jeiRuntime) {
recipeManager = jeiRuntime.getRecipeManager();