Search in sources :

Example 6 with IJeiHelpers

use of mezz.jei.api.IJeiHelpers in project EnderIO by SleepyTrousers.

the class JeiPlugin method registerCategories.

@Override
public void registerCategories(@Nonnull IRecipeCategoryRegistration registry) {
    IJeiHelpers jeiHelpers = registry.getJeiHelpers();
    IGuiHelper guiHelper = jeiHelpers.getGuiHelper();
    registry.addRecipeCategories(new InfinityRecipeCategory(guiHelper));
}
Also used : IGuiHelper(mezz.jei.api.IGuiHelper) IJeiHelpers(mezz.jei.api.IJeiHelpers)

Example 7 with IJeiHelpers

use of mezz.jei.api.IJeiHelpers in project ForestryMC by ForestryMC.

the class ForestryJeiPlugin method register.

@Override
public void register(IModRegistry registry) {
    IJeiHelpers jeiHelpers = registry.getJeiHelpers();
    IIngredientBlacklist ingredientBlacklist = jeiHelpers.getIngredientBlacklist();
    List<ItemStack> hiddenItems = ModuleManager.getInternalHandler().getHiddenItems();
    for (ItemStack hiddenItem : hiddenItems) {
        ingredientBlacklist.addIngredientToBlacklist(hiddenItem);
    }
    ItemRegistryCore items = ModuleCore.getItems();
    JeiUtil.addDescription(registry, items.solderingIron, items.circuitboards, items.tubes, items.pipette, items.kitPickaxe, items.kitShovel, items.fertilizerCompound);
    BlockRegistryCore blocks = ModuleCore.getBlocks();
    JeiUtil.addDescription(registry, blocks.analyzer, blocks.bogEarth, blocks.escritoire, blocks.humus);
}
Also used : IIngredientBlacklist(mezz.jei.api.ingredients.IIngredientBlacklist) BlockRegistryCore(forestry.core.blocks.BlockRegistryCore) ItemRegistryCore(forestry.core.items.ItemRegistryCore) ItemStack(net.minecraft.item.ItemStack) IJeiHelpers(mezz.jei.api.IJeiHelpers)

Example 8 with IJeiHelpers

use of mezz.jei.api.IJeiHelpers in project Binnie by ForestryMC.

the class ExtraTreesJeiPlugin method register.

@Override
public void register(IModRegistry registry) {
    IJeiHelpers jeiHelpers = registry.getJeiHelpers();
    if (ModuleManager.isModuleEnabled(Constants.EXTRA_TREES_MOD_ID, ExtraTreesModuleUIDs.MACHINES)) {
        registry.addRecipeCatalyst(ExtraTreeMachine.Lumbermill.get(1), RecipeUids.LUMBERMILL);
        registry.addRecipeCatalyst(ExtraTreeMachine.Press.get(1), RecipeUids.FRUIT_PRESS);
        registry.addRecipeCatalyst(ExtraTreeMachine.BREWERY.get(1), RecipeUids.BREWING);
        registry.addRecipeCatalyst(ExtraTreeMachine.Distillery.get(1), RecipeUids.DISTILLING);
        registry.addRecipes(LumbermillRecipeMaker.create(jeiHelpers), RecipeUids.LUMBERMILL);
        registry.addRecipes(FruitPressRecipeMaker.create(), RecipeUids.FRUIT_PRESS);
        registry.addRecipes(BreweryRecipeMaker.create(), RecipeUids.BREWING);
        registry.addRecipes(DistilleryRecipeMaker.create(), RecipeUids.DISTILLING);
    }
    if (ModuleManager.isModuleEnabled(Constants.EXTRA_TREES_MOD_ID, ExtraTreesModuleUIDs.WOOD)) {
        registry.addRecipeRegistryPlugin(new MultiFenceRecipeRegistryPlugin());
    }
}
Also used : MultiFenceRecipeRegistryPlugin(binnie.extratrees.integration.jei.multifence.MultiFenceRecipeRegistryPlugin) IJeiHelpers(mezz.jei.api.IJeiHelpers)

Aggregations

IJeiHelpers (mezz.jei.api.IJeiHelpers)8 IGuiHelper (mezz.jei.api.IGuiHelper)4 ItemStack (net.minecraft.item.ItemStack)3 MultiFenceRecipeRegistryPlugin (binnie.extratrees.integration.jei.multifence.MultiFenceRecipeRegistryPlugin)1 BlockRegistryCore (forestry.core.blocks.BlockRegistryCore)1 ItemRegistryCore (forestry.core.items.ItemRegistryCore)1 IIngredientBlacklist (mezz.jei.api.ingredients.IIngredientBlacklist)1 IRecipeWrapper (mezz.jei.api.recipe.IRecipeWrapper)1 FluidStack (net.minecraftforge.fluids.FluidStack)1 BookRecipe (toolbox.common.recipes.BookRecipe)1