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));
}
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);
}
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());
}
}
Aggregations