Search in sources :

Example 1 with MultiFenceRecipeRegistryPlugin

use of binnie.extratrees.integration.jei.multifence.MultiFenceRecipeRegistryPlugin 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

MultiFenceRecipeRegistryPlugin (binnie.extratrees.integration.jei.multifence.MultiFenceRecipeRegistryPlugin)1 IJeiHelpers (mezz.jei.api.IJeiHelpers)1