Search in sources :

Example 1 with IRecipeTransferRegistry

use of mezz.jei.api.recipe.transfer.IRecipeTransferRegistry in project ForestryMC by ForestryMC.

the class WorktableJeiPlugin method register.

@Override
public void register(IModRegistry registry) {
    if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID, ForestryModuleUids.WORKTABLE))) {
        return;
    }
    BlockRegistryWorktable blocks = ModuleWorktable.getBlocks();
    Preconditions.checkNotNull(blocks);
    registry.addRecipeCatalyst(new ItemStack(blocks.worktable), VanillaRecipeCategoryUid.CRAFTING);
    IRecipeTransferRegistry transferRegistry = registry.getRecipeTransferRegistry();
    transferRegistry.addRecipeTransferHandler(new WorktableRecipeTransferHandler(), VanillaRecipeCategoryUid.CRAFTING);
    JeiUtil.addDescription(registry, blocks.worktable);
}
Also used : ResourceLocation(net.minecraft.util.ResourceLocation) BlockRegistryWorktable(forestry.worktable.blocks.BlockRegistryWorktable) ItemStack(net.minecraft.item.ItemStack) IRecipeTransferRegistry(mezz.jei.api.recipe.transfer.IRecipeTransferRegistry)

Example 2 with IRecipeTransferRegistry

use of mezz.jei.api.recipe.transfer.IRecipeTransferRegistry in project minecolonies by Minecolonies.

the class JEIPlugin method register.

@Override
public void register(final IModRegistry iModRegistry) {
    final IRecipeTransferRegistry recipeTranferRegistry = iModRegistry.getRecipeTransferRegistry();
    recipeTranferRegistry.addRecipeTransferHandler(new PrivateCraftingTeachingTransferHandler(iModRegistry.getJeiHelpers().recipeTransferHandlerHelper()), VanillaRecipeCategoryUid.CRAFTING);
}
Also used : PrivateCraftingTeachingTransferHandler(com.minecolonies.coremod.compatibility.jei.transer.PrivateCraftingTeachingTransferHandler) IRecipeTransferRegistry(mezz.jei.api.recipe.transfer.IRecipeTransferRegistry)

Example 3 with IRecipeTransferRegistry

use of mezz.jei.api.recipe.transfer.IRecipeTransferRegistry in project RFToolsControl by McJty.

the class RFToolsControlJeiPlugin method register.

@Override
public void register(@Nonnull IModRegistry registry) {
    IRecipeTransferRegistry transferRegistry = registry.getRecipeTransferRegistry();
    transferRegistry.addRecipeTransferHandler(new CraftingCardRecipeTransferHandler(), VanillaRecipeCategoryUid.CRAFTING);
    transferRegistry.addRecipeTransferHandler(WorkbenchContainer.class, VanillaRecipeCategoryUid.CRAFTING, WorkbenchContainer.SLOT_CRAFTINPUT, 9, WorkbenchContainer.SLOT_BUFFER, WorkbenchContainer.BUFFER_SIZE + 9 * 4);
    registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.workbenchBlock), VanillaRecipeCategoryUid.CRAFTING);
}
Also used : ItemStack(net.minecraft.item.ItemStack) IRecipeTransferRegistry(mezz.jei.api.recipe.transfer.IRecipeTransferRegistry)

Example 4 with IRecipeTransferRegistry

use of mezz.jei.api.recipe.transfer.IRecipeTransferRegistry in project Railcraft by Railcraft.

the class RailcraftJEIPlugin method register.

@Override
public void register(IModRegistry registry) {
    ISubtypeRegistry subtypeRegistry = registry.getJeiHelpers().getSubtypeRegistry();
    Item trackOutfitted = RailcraftBlocks.TRACK_OUTFITTED.item();
    if (trackOutfitted != null)
        subtypeRegistry.registerNbtInterpreter(trackOutfitted, stack -> ((ItemTrackOutfitted) stack.getItem()).getSuffix(stack));
    IJeiHelpers jeiHelpers = registry.getJeiHelpers();
    IGuiHelper guiHelper = jeiHelpers.getGuiHelper();
    registry.addRecipeCategories(new RollingMachineRecipeCategory(guiHelper));
    registry.addRecipeHandlers(new RollingMachineRecipeHandler(jeiHelpers));
    registry.addRecipeClickArea(GuiRollingMachine.class, 90, 45, 23, 9, ROLLING);
    registry.addRecipeClickArea(GuiRollingMachinePowered.class, 90, 45, 23, 9, ROLLING);
    IRecipeTransferRegistry recipeTransferRegistry = registry.getRecipeTransferRegistry();
    recipeTransferRegistry.addRecipeTransferHandler(ContainerRollingMachine.class, ROLLING, 2, 9, 11, 36);
    recipeTransferRegistry.addRecipeTransferHandler(ContainerRollingMachinePowered.class, ROLLING, 2, 9, 11, 36);
    boolean rolling = false;
    ItemStack stack = RailcraftBlocks.EQUIPMENT.getStack(EquipmentVariant.ROLLING_MACHINE_MANUAL);
    if (!InvTools.isEmpty(stack)) {
        registry.addRecipeCategoryCraftingItem(stack, ROLLING);
        rolling = true;
    }
    stack = RailcraftBlocks.EQUIPMENT.getStack(EquipmentVariant.ROLLING_MACHINE_POWERED);
    if (!InvTools.isEmpty(stack)) {
        registry.addRecipeCategoryCraftingItem(stack, ROLLING);
        rolling = true;
    }
    if (rolling)
        registry.addRecipes(RollingMachineRecipeMaker.getRecipes(registry.getJeiHelpers()));
    RailcraftObjects.processBlockVariants((block, variant) -> addDescription(registry, block.getStack(variant)));
    RailcraftObjects.processItemVariants((item, variant) -> addDescription(registry, item.getStack(variant)));
}
Also used : InvTools(mods.railcraft.common.util.inventory.InvTools) GuiRollingMachine(mods.railcraft.client.gui.GuiRollingMachine) Item(net.minecraft.item.Item) ItemTrackOutfitted(mods.railcraft.common.blocks.tracks.outfitted.ItemTrackOutfitted) RailcraftBlocks(mods.railcraft.common.blocks.RailcraftBlocks) EquipmentVariant(mods.railcraft.common.blocks.machine.equipment.EquipmentVariant) IRecipeTransferRegistry(mezz.jei.api.recipe.transfer.IRecipeTransferRegistry) RollingMachineRecipeHandler(mods.railcraft.common.plugins.jei.rolling.RollingMachineRecipeHandler) LocalizationPlugin(mods.railcraft.common.plugins.forge.LocalizationPlugin) ItemStack(net.minecraft.item.ItemStack) RailcraftObjects(mods.railcraft.common.core.RailcraftObjects) ContainerRollingMachinePowered(mods.railcraft.common.gui.containers.ContainerRollingMachinePowered) RollingMachineRecipeCategory(mods.railcraft.common.plugins.jei.rolling.RollingMachineRecipeCategory) mezz.jei.api(mezz.jei.api) RollingMachineRecipeMaker(mods.railcraft.common.plugins.jei.rolling.RollingMachineRecipeMaker) GuiRollingMachinePowered(mods.railcraft.client.gui.GuiRollingMachinePowered) ContainerRollingMachine(mods.railcraft.common.gui.containers.ContainerRollingMachine) Nullable(javax.annotation.Nullable) Item(net.minecraft.item.Item) RollingMachineRecipeCategory(mods.railcraft.common.plugins.jei.rolling.RollingMachineRecipeCategory) RollingMachineRecipeHandler(mods.railcraft.common.plugins.jei.rolling.RollingMachineRecipeHandler) ItemTrackOutfitted(mods.railcraft.common.blocks.tracks.outfitted.ItemTrackOutfitted) ItemStack(net.minecraft.item.ItemStack) IRecipeTransferRegistry(mezz.jei.api.recipe.transfer.IRecipeTransferRegistry)

Example 5 with IRecipeTransferRegistry

use of mezz.jei.api.recipe.transfer.IRecipeTransferRegistry in project TechReborn by TechReborn.

the class TechRebornJeiPlugin method register.

@Override
public void register(@Nonnull final IModRegistry registry) {
    final IJeiHelpers jeiHelpers = registry.getJeiHelpers();
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_BERYLLIUM));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_CALCIUM));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_CALCIUM_CARBONATE));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_CHLORITE));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_DEUTERIUM));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_GLYCERYL));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_HELIUM));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_HELIUM_3));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_HELIUMPLASMA));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_HYDROGEN));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_LITHIUM));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_MERCURY));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_METHANE));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_NITROCOAL_FUEL));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_NITROFUEL));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_NITROGEN));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_NITROGENDIOXIDE));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_POTASSIUM));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_SILICON));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_SODIUM));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_SODIUMPERSULFATE));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_TRITIUM));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_WOLFRAMIUM));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_SULFUR));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_SULFURIC_ACID));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_CARBON));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_CARBON_FIBER));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_NITRO_CARBON));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_SODIUM_SULFIDE));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_DIESEL));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_NITRO_DIESEL));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_OIL));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_ELECTROLYZED_WATER));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModFluids.BLOCK_COMPRESSED_AIR));
    jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModItems.MISSING_RECIPE_PLACEHOLDER));
    if (IC2Duplicates.deduplicate()) {
        for (final IC2Duplicates duplicate : IC2Duplicates.values()) {
            if (duplicate.hasIC2Stack()) {
                jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(duplicate.getTrStack());
            }
        }
        for (int i = 0; i < EnumCableType.values().length; i++) {
            jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.CABLE, 1, i));
        }
        jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(ItemParts.getPartByName("rubber"));
        jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(ItemParts.getPartByName("rubberSap"));
        jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(ItemParts.getPartByName("electronicCircuit"));
        jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(ItemParts.getPartByName("advancedCircuit"));
        if (!Core.worldGen.config.rubberTreeConfig.shouldSpawn) {
            jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.RUBBER_SAPLING));
            jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.RUBBER_LOG));
            jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.RUBBER_PLANKS));
            jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.RUBBER_LEAVES));
            jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModItems.TREE_TAP));
            jeiHelpers.getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModItems.ELECTRIC_TREE_TAP));
        }
    }
    registry.handleRecipes(AlloySmelterRecipe.class, recipe -> new AlloySmelterRecipeWrapper(jeiHelpers, recipe), RecipeCategoryUids.ALLOY_SMELTER);
    registry.handleRecipes(AssemblingMachineRecipe.class, recipe -> new AssemblingMachineRecipeWrapper(jeiHelpers, recipe), RecipeCategoryUids.ASSEMBLING_MACHINE);
    registry.handleRecipes(BlastFurnaceRecipe.class, recipe -> new BlastFurnaceRecipeWrapper(jeiHelpers, recipe), RecipeCategoryUids.BLAST_FURNACE);
    registry.handleRecipes(CentrifugeRecipe.class, recipe -> new CentrifugeRecipeWrapper(jeiHelpers, recipe), RecipeCategoryUids.CENTRIFUGE);
    registry.handleRecipes(ChemicalReactorRecipe.class, recipe -> new ChemicalReactorRecipeWrapper(jeiHelpers, recipe), RecipeCategoryUids.CHEMICAL_REACTOR);
    registry.handleRecipes(FusionReactorRecipe.class, FusionReactorRecipeWrapper::new, RecipeCategoryUids.FUSION_REACTOR);
    registry.handleRecipes(GrinderRecipe.class, recipe -> new GrinderRecipeWrapper(jeiHelpers, recipe), RecipeCategoryUids.GRINDER);
    registry.handleRecipes(ImplosionCompressorRecipe.class, recipe -> new ImplosionCompressorRecipeWrapper(jeiHelpers, recipe), RecipeCategoryUids.IMPLOSION_COMPRESSOR);
    registry.handleRecipes(IndustrialElectrolyzerRecipe.class, recipe -> new IndustrialElectrolyzerRecipeWrapper(jeiHelpers, recipe), RecipeCategoryUids.INDUSTRIAL_ELECTROLYZER);
    registry.handleRecipes(IndustrialGrinderRecipe.class, recipe -> new IndustrialGrinderRecipeWrapper(jeiHelpers, recipe), RecipeCategoryUids.INDUSTRIAL_GRINDER);
    registry.handleRecipes(IndustrialSawmillRecipe.class, recipe -> new IndustrialSawmillRecipeWrapper(jeiHelpers, recipe), RecipeCategoryUids.INDUSTRIAL_SAWMILL);
    registry.handleRecipes(VacuumFreezerRecipe.class, recipe -> new VacuumFreezerRecipeWrapper(jeiHelpers, recipe), RecipeCategoryUids.VACUUM_FREEZER);
    registry.handleRecipes(DistillationTowerRecipe.class, recipe -> new DistillationTowerRecipeWrapper(jeiHelpers, recipe), RecipeCategoryUids.DISTILLATION_TOWER);
    registry.addRecipeHandlers(new RollingMachineRecipeHandler());
    if (CompatConfigs.showScrapbox) {
        registry.handleRecipes(ScrapboxRecipe.class, recipe -> new ScrapboxRecipeWrapper(jeiHelpers, recipe), RecipeCategoryUids.SCRAPBOX);
    }
    if (!IC2Duplicates.deduplicate()) {
        registry.handleRecipes(CompressorRecipe.class, recipe -> new CompressorRecipeWrapper(jeiHelpers, recipe), RecipeCategoryUids.COMPRESSOR);
        registry.handleRecipes(ExtractorRecipe.class, recipe -> new ExtractorRecipeWrapper(jeiHelpers, recipe), RecipeCategoryUids.EXTRACTOR);
    }
    for (final EFluidGenerator type : EFluidGenerator.values()) {
        registry.handleRecipes(FluidGeneratorRecipe.class, recipe -> new FluidGeneratorRecipeWrapper(jeiHelpers, recipe), type.getRecipeID());
    }
    registry.addRecipes(RecipeHandler.recipeList);
    registry.addRecipes(FusionReactorRecipeHelper.reactorRecipes, RecipeCategoryUids.FUSION_REACTOR);
    GeneratorRecipeHelper.fluidRecipes.forEach((type, list) -> registry.addRecipes(list.getRecipes(), type.getRecipeID()));
    try {
        registry.addRecipes(RollingMachineRecipeMaker.getRecipes(jeiHelpers), RecipeCategoryUids.ROLLING_MACHINE);
    } catch (final RuntimeException e) {
        Core.logHelper.error("Could not register rolling machine recipes. JEI may have changed its internal recipe wrapper locations.");
        e.printStackTrace();
    }
    if (Config.isDebugModeEnabled()) {
        TechRebornJeiPlugin.addDebugRecipes(registry);
    }
    registry.addIngredientInfo(ItemParts.getPartByName("rubberSap"), ItemStack.class, I18n.translateToLocal("techreborn.desc.rubberSap"));
    if (!BehaviorDispenseScrapbox.dispenseScrapboxes) {
        registry.addIngredientInfo(new ItemStack(ModItems.SCRAP_BOX), ItemStack.class, I18n.translateToLocal("techreborn.desc.scrapBoxNoDispenser"));
    } else {
        registry.addIngredientInfo(new ItemStack(ModItems.SCRAP_BOX), ItemStack.class, I18n.translateToLocal("techreborn.desc.scrapBox"));
    }
    // NEW ONES
    addRecipeClickArea(GuiCentrifuge.class, 150, 4, 20, 12, RecipeCategoryUids.CENTRIFUGE);
    addRecipeClickArea(GuiElectricFurnace.class, 150, 4, 20, 12, VanillaRecipeCategoryUid.SMELTING);
    addRecipeClickArea(GuiGenerator.class, 150, 4, 20, 12, VanillaRecipeCategoryUid.FUEL);
    addRecipeClickArea(GuiExtractor.class, 150, 4, 20, 12, RecipeCategoryUids.EXTRACTOR);
    addRecipeClickArea(GuiCompressor.class, 150, 4, 20, 12, RecipeCategoryUids.COMPRESSOR);
    addRecipeClickArea(GuiGrinder.class, 150, 4, 20, 12, RecipeCategoryUids.GRINDER);
    addRecipeClickArea(GuiVacuumFreezer.class, 150, 4, 20, 12, RecipeCategoryUids.VACUUM_FREEZER);
    addRecipeClickArea(GuiBlastFurnace.class, 150, 4, 20, 12, RecipeCategoryUids.BLAST_FURNACE);
    addRecipeClickArea(GuiChemicalReactor.class, 150, 4, 20, 12, RecipeCategoryUids.CHEMICAL_REACTOR);
    addRecipeClickArea(GuiImplosionCompressor.class, 150, 4, 20, 12, RecipeCategoryUids.IMPLOSION_COMPRESSOR);
    addRecipeClickArea(GuiIndustrialGrinder.class, 150, 4, 20, 12, RecipeCategoryUids.INDUSTRIAL_GRINDER);
    addRecipeClickArea(GuiIndustrialSawmill.class, 150, 4, 20, 15, RecipeCategoryUids.INDUSTRIAL_SAWMILL);
    addRecipeClickArea(GuiIndustrialElectrolyzer.class, 150, 4, 20, 12, RecipeCategoryUids.INDUSTRIAL_ELECTROLYZER);
    addRecipeClickArea(GuiSemifluidGenerator.class, 150, 4, 18, 18, EFluidGenerator.SEMIFLUID.getRecipeID());
    addRecipeClickArea(GuiDieselGenerator.class, 150, 4, 18, 18, EFluidGenerator.DIESEL.getRecipeID());
    addRecipeClickArea(GuiGasTurbine.class, 150, 4, 18, 18, EFluidGenerator.GAS.getRecipeID());
    addRecipeClickArea(GuiThermalGenerator.class, 150, 4, 18, 18, EFluidGenerator.THERMAL.getRecipeID());
    addRecipeClickArea(GuiAlloySmelter.class, 150, 4, 18, 18, RecipeCategoryUids.ALLOY_SMELTER);
    addRecipeClickArea(GuiPlasmaGenerator.class, 150, 4, 18, 18, EFluidGenerator.PLASMA.getRecipeID());
    addRecipeClickArea(GuiDistillationTower.class, 150, 4, 18, 18, RecipeCategoryUids.DISTILLATION_TOWER);
    addRecipeClickArea(GuiScrapboxinator.class, 150, 4, 18, 18, RecipeCategoryUids.SCRAPBOX);
    addRecipeClickArea(GuiFusionReactor.class, 150, 4, 18, 18, RecipeCategoryUids.FUSION_REACTOR);
    addRecipeClickArea(GuiRollingMachine.class, 150, 4, 20, 12, RecipeCategoryUids.ROLLING_MACHINE);
    // OLD ONES
    addRecipeClickArea(GuiAlloyFurnace.class, 80, 35, 26, 20, RecipeCategoryUids.ALLOY_SMELTER, VanillaRecipeCategoryUid.FUEL);
    addRecipeClickArea(GuiAssemblingMachine.class, 85, 34, 24, 20, RecipeCategoryUids.ASSEMBLING_MACHINE);
    addRecipeClickArea(GuiIronFurnace.class, 78, 36, 24, 16, VanillaRecipeCategoryUid.SMELTING, VanillaRecipeCategoryUid.FUEL);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.IRON_FURNACE), VanillaRecipeCategoryUid.SMELTING, VanillaRecipeCategoryUid.FUEL);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.IRON_ALLOY_FURNACE), RecipeCategoryUids.ALLOY_SMELTER, VanillaRecipeCategoryUid.FUEL);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.SOLID_FUEL_GENEREATOR), VanillaRecipeCategoryUid.FUEL);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.SEMI_FLUID_GENERATOR), EFluidGenerator.SEMIFLUID.getRecipeID());
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.GAS_TURBINE), EFluidGenerator.GAS.getRecipeID());
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.DIESEL_GENERATOR), EFluidGenerator.DIESEL.getRecipeID());
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.THERMAL_GENERATOR), EFluidGenerator.THERMAL.getRecipeID());
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.COMPRESSOR), RecipeCategoryUids.COMPRESSOR);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.EXTRACTOR), RecipeCategoryUids.EXTRACTOR);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.GRINDER), RecipeCategoryUids.GRINDER);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.VACUUM_FREEZER), RecipeCategoryUids.VACUUM_FREEZER);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.ELECTRIC_FURNACE), VanillaRecipeCategoryUid.SMELTING);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.ALLOY_SMELTER), RecipeCategoryUids.ALLOY_SMELTER);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.ASSEMBLY_MACHINE), RecipeCategoryUids.ASSEMBLING_MACHINE);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.CHEMICAL_REACTOR), RecipeCategoryUids.CHEMICAL_REACTOR);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.FUSION_CONTROL_COMPUTER), RecipeCategoryUids.FUSION_REACTOR);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.IMPLOSION_COMPRESSOR), RecipeCategoryUids.IMPLOSION_COMPRESSOR);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.INDUSTRIAL_BLAST_FURNACE), RecipeCategoryUids.BLAST_FURNACE);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.INDUSTRIAL_CENTRIFUGE), RecipeCategoryUids.CENTRIFUGE);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.INDUSTRIAL_ELECTROLYZER), RecipeCategoryUids.INDUSTRIAL_ELECTROLYZER);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.INDUSTRIAL_GRINDER), RecipeCategoryUids.INDUSTRIAL_GRINDER);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.INDUSTRIAL_SAWMILL), RecipeCategoryUids.INDUSTRIAL_SAWMILL);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.ROLLING_MACHINE), RecipeCategoryUids.ROLLING_MACHINE);
    registry.addRecipeCatalyst(new ItemStack(ModBlocks.DISTILLATION_TOWER), RecipeCategoryUids.DISTILLATION_TOWER);
    if (CompatConfigs.showScrapbox) {
        registry.addRecipeCatalyst(new ItemStack(ModItems.SCRAP_BOX), RecipeCategoryUids.SCRAPBOX);
    }
    final IRecipeTransferRegistry recipeTransferRegistry = registry.getRecipeTransferRegistry();
    recipeTransferRegistry.addRecipeTransferHandler(new BuiltContainerTransferInfo("fusionreactor", RecipeCategoryUids.FUSION_REACTOR, 36, 2, 0, 36));
    recipeTransferRegistry.addRecipeTransferHandler(new BuiltContainerTransferInfo("industrialelectrolyzer", RecipeCategoryUids.INDUSTRIAL_ELECTROLYZER, 36, 2, 0, 36));
    recipeTransferRegistry.addRecipeTransferHandler(new BuiltContainerTransferInfo("industrialgrinder", RecipeCategoryUids.GRINDER, 36, 2, 0, 36));
    recipeTransferRegistry.addRecipeTransferHandler(new BuiltContainerTransferInfo("implosioncompressor", RecipeCategoryUids.IMPLOSION_COMPRESSOR, 36, 2, 0, 36));
    recipeTransferRegistry.addRecipeTransferHandler(new BuiltContainerTransferInfo("vacuumfreezer", RecipeCategoryUids.VACUUM_FREEZER, 36, 1, 0, 36));
    recipeTransferRegistry.addRecipeTransferHandler(new BuiltContainerTransferInfo("blastfurnace", RecipeCategoryUids.BLAST_FURNACE, 36, 2, 0, 36));
    recipeTransferRegistry.addRecipeTransferHandler(new BuiltContainerTransferInfo("rollingmachine", RecipeCategoryUids.ROLLING_MACHINE, 36, 9, 0, 36));
    recipeTransferRegistry.addRecipeTransferHandler(new BuiltContainerTransferInfo("alloyfurnace", RecipeCategoryUids.ALLOY_SMELTER, 36, 2, 0, 36));
    recipeTransferRegistry.addRecipeTransferHandler(new BuiltContainerTransferInfo("alloyfurnace", VanillaRecipeCategoryUid.FUEL, 36, 2, 0, 36));
    recipeTransferRegistry.addRecipeTransferHandler(new BuiltContainerTransferInfo("alloysmelter", RecipeCategoryUids.ALLOY_SMELTER, 36, 2, 0, 36));
    recipeTransferRegistry.addRecipeTransferHandler(new BuiltContainerTransferInfo("assemblingmachine", RecipeCategoryUids.ASSEMBLING_MACHINE, 36, 2, 0, 36));
    recipeTransferRegistry.addRecipeTransferHandler(new BuiltContainerTransferInfo("chemicalreactor", RecipeCategoryUids.CHEMICAL_REACTOR, 36, 2, 0, 36));
    recipeTransferRegistry.addRecipeTransferHandler(new BuiltContainerTransferInfo("centrifuge", RecipeCategoryUids.CENTRIFUGE, 36, 2, 0, 36));
    recipeTransferRegistry.addRecipeTransferHandler(new BuiltContainerTransferInfo("grinder", RecipeCategoryUids.GRINDER, 36, 1, 0, 36));
    recipeTransferRegistry.addRecipeTransferHandler(new BuiltContainerTransferInfo("extractor", RecipeCategoryUids.EXTRACTOR, 36, 1, 0, 36));
    recipeTransferRegistry.addRecipeTransferHandler(new BuiltContainerTransferInfo("compressor", RecipeCategoryUids.COMPRESSOR, 36, 1, 0, 36));
    recipeTransferRegistry.addRecipeTransferHandler(new BuiltContainerTransferInfo("industrialsawmill", RecipeCategoryUids.INDUSTRIAL_SAWMILL, 36, 2, 0, 36));
    recipeTransferRegistry.addRecipeTransferHandler(new BuiltContainerTransferInfo("distillationtower", RecipeCategoryUids.DISTILLATION_TOWER, 36, 2, 0, 36));
    if (CompatManager.isQuantumStorageLoaded) {
        registry.getJeiHelpers().getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.QUANTUM_CHEST));
        registry.getJeiHelpers().getIngredientBlacklist().addIngredientToBlacklist(new ItemStack(ModBlocks.QUANTUM_TANK));
    }
    registry.addAdvancedGuiHandlers(new AdvancedGuiHandler());
}
Also used : ChemicalReactorRecipeWrapper(techreborn.compat.jei.chemicalReactor.ChemicalReactorRecipeWrapper) IC2Duplicates(techreborn.init.IC2Duplicates) CentrifugeRecipeWrapper(techreborn.compat.jei.centrifuge.CentrifugeRecipeWrapper) IndustrialSawmillRecipeWrapper(techreborn.compat.jei.industrialSawmill.IndustrialSawmillRecipeWrapper) EFluidGenerator(techreborn.api.generator.EFluidGenerator) ScrapboxRecipeWrapper(techreborn.compat.jei.scrapbox.ScrapboxRecipeWrapper) CompressorRecipeWrapper(techreborn.compat.jei.compressor.CompressorRecipeWrapper) ImplosionCompressorRecipeWrapper(techreborn.compat.jei.implosionCompressor.ImplosionCompressorRecipeWrapper) VacuumFreezerRecipeWrapper(techreborn.compat.jei.vacuumFreezer.VacuumFreezerRecipeWrapper) AssemblingMachineRecipeWrapper(techreborn.compat.jei.assemblingMachine.AssemblingMachineRecipeWrapper) AlloySmelterRecipeWrapper(techreborn.compat.jei.alloySmelter.AlloySmelterRecipeWrapper) BlastFurnaceRecipeWrapper(techreborn.compat.jei.blastFurnace.BlastFurnaceRecipeWrapper) IndustrialElectrolyzerRecipeWrapper(techreborn.compat.jei.industrialElectrolyzer.IndustrialElectrolyzerRecipeWrapper) IndustrialGrinderRecipeWrapper(techreborn.compat.jei.industrialGrinder.IndustrialGrinderRecipeWrapper) GrinderRecipeWrapper(techreborn.compat.jei.grinder.GrinderRecipeWrapper) FusionReactorRecipeWrapper(techreborn.compat.jei.fusionReactor.FusionReactorRecipeWrapper) RollingMachineRecipeHandler(techreborn.compat.jei.rollingMachine.RollingMachineRecipeHandler) IAdvancedGuiHandler(mezz.jei.api.gui.IAdvancedGuiHandler) ExtractorRecipeWrapper(techreborn.compat.jei.extractor.ExtractorRecipeWrapper) ImplosionCompressorRecipeWrapper(techreborn.compat.jei.implosionCompressor.ImplosionCompressorRecipeWrapper) FluidGeneratorRecipeWrapper(techreborn.compat.jei.generators.fluid.FluidGeneratorRecipeWrapper) ItemStack(net.minecraft.item.ItemStack) IndustrialGrinderRecipeWrapper(techreborn.compat.jei.industrialGrinder.IndustrialGrinderRecipeWrapper) DistillationTowerRecipeWrapper(techreborn.compat.jei.distillationTower.DistillationTowerRecipeWrapper) IRecipeTransferRegistry(mezz.jei.api.recipe.transfer.IRecipeTransferRegistry)

Aggregations

IRecipeTransferRegistry (mezz.jei.api.recipe.transfer.IRecipeTransferRegistry)9 ItemStack (net.minecraft.item.ItemStack)6 ArrayList (java.util.ArrayList)2 ResourceLocation (net.minecraft.util.ResourceLocation)2 RecipeRegistry (com.codetaylor.mc.artisanworktables.api.internal.recipe.RecipeRegistry)1 EnumTier (com.codetaylor.mc.artisanworktables.api.internal.reference.EnumTier)1 IArtisanRecipe (com.codetaylor.mc.artisanworktables.api.recipe.IArtisanRecipe)1 PrivateCraftingTeachingTransferHandler (com.minecolonies.coremod.compatibility.jei.transer.PrivateCraftingTeachingTransferHandler)1 BlockRegistryFactory (forestry.factory.blocks.BlockRegistryFactory)1 CarpenterRecipeTransferHandler (forestry.factory.recipes.jei.carpenter.CarpenterRecipeTransferHandler)1 FabricatorRecipeTransferHandler (forestry.factory.recipes.jei.fabricator.FabricatorRecipeTransferHandler)1 BlockRegistryWorktable (forestry.worktable.blocks.BlockRegistryWorktable)1 Nullable (javax.annotation.Nullable)1 ImbuingRecipeWrapper (lumien.randomthings.handler.compability.jei.imbuing.ImbuingRecipeWrapper)1 AnvilRecipe (lumien.randomthings.recipes.anvil.AnvilRecipe)1 mezz.jei.api (mezz.jei.api)1 IGuiHelper (mezz.jei.api.IGuiHelper)1 IRecipeRegistry (mezz.jei.api.IRecipeRegistry)1 IAdvancedGuiHandler (mezz.jei.api.gui.IAdvancedGuiHandler)1 IRecipeWrapper (mezz.jei.api.recipe.IRecipeWrapper)1