mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-22 04:52:15 +00:00
Fix missing helpers in JEI
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user