TechReborn/1.11/jei/TechRebornJeiPlugin.java

261 lines
16 KiB
Java
Raw Normal View History

2015-11-29 11:42:34 +01:00
package techreborn.compat.jei;
import mezz.jei.api.BlankModPlugin;
2015-12-31 05:09:06 +01:00
import mezz.jei.api.IGuiHelper;
import mezz.jei.api.IJeiHelpers;
import mezz.jei.api.IModRegistry;
2015-12-31 06:17:20 +01:00
import mezz.jei.api.recipe.VanillaRecipeCategoryUid;
import mezz.jei.api.recipe.transfer.IRecipeTransferRegistry;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.util.text.translation.I18n;
import reborncore.api.recipe.RecipeHandler;
2015-12-31 12:20:04 +01:00
import techreborn.Core;
2015-11-29 11:42:34 +01:00
import techreborn.api.reactor.FusionReactorRecipeHelper;
2015-12-31 06:40:21 +01:00
import techreborn.api.recipe.machines.AssemblingMachineRecipe;
2015-12-31 10:07:35 +01:00
import techreborn.api.recipe.machines.ImplosionCompressorRecipe;
2016-03-28 21:51:23 +02:00
import techreborn.client.container.*;
import techreborn.client.gui.*;
import techreborn.compat.CompatManager;
2015-12-31 06:17:20 +01:00
import techreborn.compat.jei.alloySmelter.AlloySmelterRecipeCategory;
import techreborn.compat.jei.alloySmelter.AlloySmelterRecipeHandler;
2015-12-31 06:40:21 +01:00
import techreborn.compat.jei.assemblingMachine.AssemblingMachineRecipeCategory;
import techreborn.compat.jei.assemblingMachine.AssemblingMachineRecipeHandler;
2015-12-31 07:28:58 +01:00
import techreborn.compat.jei.blastFurnace.BlastFurnaceRecipeCategory;
import techreborn.compat.jei.blastFurnace.BlastFurnaceRecipeHandler;
2015-12-31 08:13:02 +01:00
import techreborn.compat.jei.centrifuge.CentrifugeRecipeCategory;
import techreborn.compat.jei.centrifuge.CentrifugeRecipeHandler;
2015-12-31 08:30:09 +01:00
import techreborn.compat.jei.chemicalReactor.ChemicalReactorRecipeCategory;
import techreborn.compat.jei.chemicalReactor.ChemicalReactorRecipeHandler;
2016-03-06 14:33:35 +01:00
import techreborn.compat.jei.compressor.CompressorRecipeCategory;
import techreborn.compat.jei.compressor.CompressorRecipeHandler;
import techreborn.compat.jei.extractor.ExtractorRecipeCategory;
import techreborn.compat.jei.extractor.ExtractorRecipeHandler;
2015-11-29 11:42:34 +01:00
import techreborn.compat.jei.fusionReactor.FusionReactorRecipeCategory;
import techreborn.compat.jei.fusionReactor.FusionReactorRecipeHandler;
2016-02-25 14:17:33 +01:00
import techreborn.compat.jei.grinder.GrinderRecipeCategory;
import techreborn.compat.jei.grinder.GrinderRecipeHandler;
2015-12-31 10:07:35 +01:00
import techreborn.compat.jei.implosionCompressor.ImplosionCompressorRecipeCategory;
import techreborn.compat.jei.implosionCompressor.ImplosionCompressorRecipeHandler;
2015-12-31 10:40:56 +01:00
import techreborn.compat.jei.industrialElectrolyzer.IndustrialElectrolyzerRecipeCategory;
import techreborn.compat.jei.industrialElectrolyzer.IndustrialElectrolyzerRecipeHandler;
2016-02-20 01:57:57 +01:00
import techreborn.compat.jei.industrialGrinder.IndustrialGrinderRecipeCategory;
import techreborn.compat.jei.industrialGrinder.IndustrialGrinderRecipeHandler;
2015-12-31 12:20:04 +01:00
import techreborn.compat.jei.rollingMachine.RollingMachineRecipeCategory;
import techreborn.compat.jei.rollingMachine.RollingMachineRecipeHandler;
import techreborn.compat.jei.rollingMachine.RollingMachineRecipeMaker;
import techreborn.compat.jei.scrapbox.ScrapboxRecipeCategory;
import techreborn.compat.jei.scrapbox.ScrapboxRecipeHandler;
2015-12-31 11:27:07 +01:00
import techreborn.compat.jei.vacuumFreezer.VacuumFreezerRecipeCategory;
import techreborn.compat.jei.vacuumFreezer.VacuumFreezerRecipeHandler;
import techreborn.config.ConfigTechReborn;
2016-05-01 05:01:10 +02:00
import techreborn.init.ModBlocks;
2016-03-27 19:30:32 +02:00
import techreborn.init.ModFluids;
import techreborn.init.ModItems;
import techreborn.items.ItemParts;
2015-11-29 11:42:34 +01:00
2016-03-28 21:51:23 +02:00
import javax.annotation.Nonnull;
import java.util.ArrayList;
import java.util.List;
2016-10-08 21:46:16 +02:00
@mezz.jei.api.JEIPlugin
public class TechRebornJeiPlugin extends BlankModPlugin {
private static void addDebugRecipes(IModRegistry registry) {
2016-05-06 23:13:24 +02:00
ItemStack diamondBlock = new ItemStack(Blocks.DIAMOND_BLOCK);
ItemStack dirtBlock = new ItemStack(Blocks.DIRT);
2016-03-25 10:47:34 +01:00
List<Object> debugRecipes = new ArrayList<>();
2016-10-08 21:46:16 +02:00
for (int i = 0; i < 10; i++) {
2016-03-25 10:47:34 +01:00
int time = (int) Math.round(200 + Math.random() * 100);
AssemblingMachineRecipe assemblingMachineRecipe = new AssemblingMachineRecipe(diamondBlock, diamondBlock,
2016-10-08 21:46:16 +02:00
dirtBlock, time, 120);
2016-03-25 10:47:34 +01:00
debugRecipes.add(assemblingMachineRecipe);
}
2016-10-08 21:46:16 +02:00
for (int i = 0; i < 10; i++) {
2016-03-25 10:47:34 +01:00
int time = (int) Math.round(200 + Math.random() * 100);
ImplosionCompressorRecipe recipe = new ImplosionCompressorRecipe(diamondBlock, diamondBlock, dirtBlock,
2016-10-08 21:46:16 +02:00
dirtBlock, time, 120);
2016-03-25 10:47:34 +01:00
debugRecipes.add(recipe);
}
registry.addRecipes(debugRecipes);
}
2015-12-31 05:09:06 +01:00
2016-10-08 21:46:16 +02:00
@Override
public void register(
@Nonnull
IModRegistry registry) {
2016-03-25 10:47:34 +01:00
IJeiHelpers jeiHelpers = registry.getJeiHelpers();
IGuiHelper guiHelper = jeiHelpers.getGuiHelper();
2015-12-31 05:09:06 +01:00
2016-03-27 19:30:32 +02:00
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidBerylium));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidCalcium));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidCalciumCarbonate));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidChlorite));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidDeuterium));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidGlyceryl));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidHelium));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidHelium3));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidHeliumplasma));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidHydrogen));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidLithium));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidMercury));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidMethane));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidNitrocoalfuel));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidNitrofuel));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidNitrogen));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidNitrogendioxide));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidPotassium));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidSilicon));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidSodium));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidSodiumpersulfate));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidTritium));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidWolframium));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidSulfur));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidSulfuricAcid));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidCarbon));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidCarbonFiber));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidNitroCarbon));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidSodiumSulfide));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidDiesel));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidNitroDiesel));
jeiHelpers.getItemBlacklist().addItemToBlacklist(new ItemStack(ModFluids.BlockFluidOil));
2016-05-01 05:01:10 +02:00
2016-03-25 10:47:34 +01:00
registry.addRecipeCategories(new AlloySmelterRecipeCategory(guiHelper),
2016-10-08 21:46:16 +02:00
new AssemblingMachineRecipeCategory(guiHelper), new BlastFurnaceRecipeCategory(guiHelper),
new CentrifugeRecipeCategory(guiHelper), new ChemicalReactorRecipeCategory(guiHelper),
new FusionReactorRecipeCategory(guiHelper), new IndustrialGrinderRecipeCategory(guiHelper),
new ImplosionCompressorRecipeCategory(guiHelper), new IndustrialElectrolyzerRecipeCategory(guiHelper),
new RollingMachineRecipeCategory(guiHelper),
new VacuumFreezerRecipeCategory(guiHelper), new GrinderRecipeCategory(guiHelper),
new ExtractorRecipeCategory(guiHelper), new CompressorRecipeCategory(guiHelper), new ScrapboxRecipeCategory(guiHelper));
2015-12-31 05:09:06 +01:00
2016-03-25 10:47:34 +01:00
registry.addRecipeHandlers(new AlloySmelterRecipeHandler(jeiHelpers),
2016-10-08 21:46:16 +02:00
new AssemblingMachineRecipeHandler(jeiHelpers), new BlastFurnaceRecipeHandler(jeiHelpers),
new CentrifugeRecipeHandler(jeiHelpers), new ChemicalReactorRecipeHandler(jeiHelpers),
new FusionReactorRecipeHandler(), new IndustrialGrinderRecipeHandler(jeiHelpers),
new ImplosionCompressorRecipeHandler(jeiHelpers), new IndustrialElectrolyzerRecipeHandler(jeiHelpers),
new RollingMachineRecipeHandler(),
new VacuumFreezerRecipeHandler(jeiHelpers), new GrinderRecipeHandler(jeiHelpers),
new ExtractorRecipeHandler(jeiHelpers), new CompressorRecipeHandler(jeiHelpers),
new ScrapboxRecipeHandler(jeiHelpers));
2016-03-25 10:47:34 +01:00
registry.addRecipes(RecipeHandler.recipeList);
registry.addRecipes(FusionReactorRecipeHelper.reactorRecipes);
2015-12-31 12:20:04 +01:00
2016-10-08 21:46:16 +02:00
try {
2016-04-22 05:51:15 +02:00
registry.addRecipes(RollingMachineRecipeMaker.getRecipes(jeiHelpers));
2016-10-08 21:46:16 +02:00
} catch (RuntimeException e) {
2016-05-01 05:01:10 +02:00
Core.logHelper
2016-10-08 21:46:16 +02:00
.error("Could not register rolling machine recipes. JEI may have changed its internal recipe wrapper locations.");
2016-03-25 10:47:34 +01:00
e.printStackTrace();
}
2015-12-31 06:40:21 +01:00
2016-10-08 21:46:16 +02:00
if (mezz.jei.config.Config.isDebugModeEnabled()) {
2016-03-25 10:47:34 +01:00
addDebugRecipes(registry);
}
2016-02-25 14:17:33 +01:00
2016-03-25 10:47:34 +01:00
registry.addDescription(ItemParts.getPartByName("rubberSap"),
2016-10-08 21:46:16 +02:00
I18n.translateToLocal("techreborn.desc.rubberSap"));
if (!ConfigTechReborn.ScrapboxDispenser) {
2016-03-25 10:47:34 +01:00
registry.addDescription(new ItemStack(ModItems.scrapBox),
2016-10-08 21:46:16 +02:00
I18n.translateToLocal("techreborn.desc.scrapBoxNoDispenser"));
} else {
2016-03-25 10:47:34 +01:00
registry.addDescription(new ItemStack(ModItems.scrapBox),
2016-10-08 21:46:16 +02:00
I18n.translateToLocal("techreborn.desc.scrapBox"));
2016-03-25 10:47:34 +01:00
}
2016-03-25 10:47:34 +01:00
registry.addRecipeClickArea(GuiAlloyFurnace.class, 80, 35, 26, 20, RecipeCategoryUids.ALLOY_SMELTER,
2016-10-08 21:46:16 +02:00
VanillaRecipeCategoryUid.FUEL);
2016-03-25 10:47:34 +01:00
registry.addRecipeClickArea(GuiAlloySmelter.class, 80, 35, 26, 20, RecipeCategoryUids.ALLOY_SMELTER);
registry.addRecipeClickArea(GuiAssemblingMachine.class, 85, 34, 24, 20, RecipeCategoryUids.ASSEMBLING_MACHINE);
registry.addRecipeClickArea(GuiBlastFurnace.class, 63, 36, 24, 15, RecipeCategoryUids.BLAST_FURNACE);
registry.addRecipeClickArea(GuiCentrifuge.class, 98, 37, 9, 12, RecipeCategoryUids.CENTRIFUGE);
registry.addRecipeClickArea(GuiCentrifuge.class, 68, 37, 9, 12, RecipeCategoryUids.CENTRIFUGE);
registry.addRecipeClickArea(GuiCentrifuge.class, 83, 23, 12, 9, RecipeCategoryUids.CENTRIFUGE);
registry.addRecipeClickArea(GuiCentrifuge.class, 83, 53, 12, 9, RecipeCategoryUids.CENTRIFUGE);
registry.addRecipeClickArea(GuiChemicalReactor.class, 73, 39, 32, 12, RecipeCategoryUids.CHEMICAL_REACTOR);
registry.addRecipeClickArea(GuiFusionReactor.class, 111, 34, 27, 19, RecipeCategoryUids.FUSION_REACTOR);
registry.addRecipeClickArea(GuiIndustrialGrinder.class, 50, 35, 25, 16, RecipeCategoryUids.INDUSTRIAL_GRINDER);
registry.addRecipeClickArea(GuiImplosionCompressor.class, 60, 37, 24, 15,
2016-10-08 21:46:16 +02:00
RecipeCategoryUids.IMPLOSION_COMPRESSOR);
2016-03-25 10:47:34 +01:00
registry.addRecipeClickArea(GuiIndustrialElectrolyzer.class, 72, 37, 33, 14,
2016-10-08 21:46:16 +02:00
RecipeCategoryUids.INDUSTRIAL_ELECTROLYZER);
2016-03-25 10:47:34 +01:00
registry.addRecipeClickArea(GuiRollingMachine.class, 89, 32, 26, 25, RecipeCategoryUids.ROLLING_MACHINE);
registry.addRecipeClickArea(GuiVacuumFreezer.class, 78, 36, 24, 16, RecipeCategoryUids.VACUUM_FREEZER);
registry.addRecipeClickArea(GuiGrinder.class, 78, 36, 24, 16, RecipeCategoryUids.GRINDER);
registry.addRecipeClickArea(GuiExtractor.class, 78, 36, 24, 16, RecipeCategoryUids.EXTRACTOR);
registry.addRecipeClickArea(GuiCompressor.class, 78, 36, 24, 16, RecipeCategoryUids.COMPRESSOR);
registry.addRecipeClickArea(GuiIronFurnace.class, 78, 36, 24, 16, VanillaRecipeCategoryUid.SMELTING,
2016-10-08 21:46:16 +02:00
VanillaRecipeCategoryUid.FUEL);
2016-05-01 05:01:10 +02:00
registry.addRecipeClickArea(GuiElectricFurnace.class, 78, 36, 24, 16, VanillaRecipeCategoryUid.SMELTING);
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.Compressor), RecipeCategoryUids.COMPRESSOR);
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.AlloyFurnace), RecipeCategoryUids.ALLOY_SMELTER);
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.AlloySmelter), RecipeCategoryUids.ALLOY_SMELTER);
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.AssemblyMachine),
2016-10-08 21:46:16 +02:00
RecipeCategoryUids.ASSEMBLING_MACHINE);
2016-05-01 05:01:10 +02:00
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.BlastFurnace), RecipeCategoryUids.BLAST_FURNACE);
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.centrifuge), RecipeCategoryUids.CENTRIFUGE);
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.ChemicalReactor),
2016-10-08 21:46:16 +02:00
RecipeCategoryUids.CHEMICAL_REACTOR);
2016-05-01 05:01:10 +02:00
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.Extractor), RecipeCategoryUids.EXTRACTOR);
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.FusionControlComputer),
2016-10-08 21:46:16 +02:00
RecipeCategoryUids.FUSION_REACTOR);
2016-05-01 05:01:10 +02:00
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.Grinder), RecipeCategoryUids.GRINDER);
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.ImplosionCompressor),
2016-10-08 21:46:16 +02:00
RecipeCategoryUids.IMPLOSION_COMPRESSOR);
2016-05-01 05:01:10 +02:00
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.IndustrialElectrolyzer),
2016-10-08 21:46:16 +02:00
RecipeCategoryUids.INDUSTRIAL_ELECTROLYZER);
2016-05-01 05:01:10 +02:00
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.IndustrialGrinder),
2016-10-08 21:46:16 +02:00
RecipeCategoryUids.INDUSTRIAL_GRINDER);
2016-05-01 05:01:10 +02:00
registry.addRecipeCategoryCraftingItem(new ItemStack(ModBlocks.RollingMachine),
2016-10-08 21:46:16 +02:00
RecipeCategoryUids.ROLLING_MACHINE);
registry.addRecipeCategoryCraftingItem(new ItemStack(ModItems.scrapBox), RecipeCategoryUids.SCRAPBOX);
2016-03-06 14:33:35 +01:00
2016-03-25 10:47:34 +01:00
IRecipeTransferRegistry recipeTransferRegistry = registry.getRecipeTransferRegistry();
2016-05-01 05:01:10 +02:00
recipeTransferRegistry
2016-10-08 21:46:16 +02:00
.addRecipeTransferHandler(ContainerAlloyFurnace.class, RecipeCategoryUids.ALLOY_SMELTER, 0, 2, 4, 36);
2016-05-01 05:01:10 +02:00
recipeTransferRegistry
2016-10-08 21:46:16 +02:00
.addRecipeTransferHandler(ContainerAlloySmelter.class, RecipeCategoryUids.ALLOY_SMELTER, 0, 2, 8, 36);
2016-05-01 05:01:10 +02:00
recipeTransferRegistry
2016-10-08 21:46:16 +02:00
.addRecipeTransferHandler(ContainerAlloyFurnace.class, VanillaRecipeCategoryUid.FUEL, 3, 1, 4, 36);
2016-05-01 05:01:10 +02:00
recipeTransferRegistry
2016-10-08 21:46:16 +02:00
.addRecipeTransferHandler(ContainerAssemblingMachine.class, RecipeCategoryUids.ASSEMBLING_MACHINE, 0, 2,
8, 36);
2016-05-01 05:01:10 +02:00
recipeTransferRegistry
2016-10-08 21:46:16 +02:00
.addRecipeTransferHandler(ContainerBlastFurnace.class, RecipeCategoryUids.BLAST_FURNACE, 0, 2, 4, 36);
2016-05-01 05:01:10 +02:00
recipeTransferRegistry
2016-10-08 21:46:16 +02:00
.addRecipeTransferHandler(ContainerCentrifuge.class, RecipeCategoryUids.CENTRIFUGE, 0, 2, 11, 36);
2016-05-01 05:01:10 +02:00
recipeTransferRegistry
2016-10-08 21:46:16 +02:00
.addRecipeTransferHandler(ContainerChemicalReactor.class, RecipeCategoryUids.CHEMICAL_REACTOR, 0, 2, 8,
36);
2016-05-01 05:01:10 +02:00
recipeTransferRegistry
2016-10-08 21:46:16 +02:00
.addRecipeTransferHandler(ContainerFusionReactor.class, RecipeCategoryUids.FUSION_REACTOR, 0, 2, 3, 36);
2016-05-01 05:01:10 +02:00
recipeTransferRegistry
2016-10-08 21:46:16 +02:00
.addRecipeTransferHandler(ContainerIndustrialGrinder.class, RecipeCategoryUids.GRINDER, 0, 2, 6, 36);
2016-05-01 05:01:10 +02:00
recipeTransferRegistry
2016-10-08 21:46:16 +02:00
.addRecipeTransferHandler(ContainerImplosionCompressor.class, RecipeCategoryUids.IMPLOSION_COMPRESSOR,
0, 2, 4, 36);
2016-03-25 10:47:34 +01:00
recipeTransferRegistry.addRecipeTransferHandler(ContainerIndustrialElectrolyzer.class,
2016-10-08 21:46:16 +02:00
RecipeCategoryUids.INDUSTRIAL_ELECTROLYZER, 0, 2, 7, 36);
2016-05-01 05:01:10 +02:00
recipeTransferRegistry
2016-10-08 21:46:16 +02:00
.addRecipeTransferHandler(ContainerRollingMachine.class, RecipeCategoryUids.ROLLING_MACHINE, 0, 9, 11,
36);
2016-05-01 05:01:10 +02:00
recipeTransferRegistry
2016-10-08 21:46:16 +02:00
.addRecipeTransferHandler(ContainerVacuumFreezer.class, RecipeCategoryUids.VACUUM_FREEZER, 0, 1, 2, 36);
2016-05-01 05:01:10 +02:00
recipeTransferRegistry
2016-10-08 21:46:16 +02:00
.addRecipeTransferHandler(ContainerGrinder.class, RecipeCategoryUids.GRINDER, 0, 1, 2, 36);
2016-05-01 05:01:10 +02:00
recipeTransferRegistry
2016-10-08 21:46:16 +02:00
.addRecipeTransferHandler(ContainerExtractor.class, RecipeCategoryUids.EXTRACTOR, 0, 1, 2, 36);
2016-05-01 05:01:10 +02:00
recipeTransferRegistry
2016-10-08 21:46:16 +02:00
.addRecipeTransferHandler(ContainerCompressor.class, RecipeCategoryUids.COMPRESSOR, 0, 1, 2, 36);
2015-12-30 12:57:06 +01:00
registry.getJeiHelpers().getItemBlacklist().addItemToBlacklist(new ItemStack(ModBlocks.pump));
2016-10-08 21:46:16 +02:00
if (CompatManager.isQuantumStorageLoaded) {
registry.getJeiHelpers().getItemBlacklist().addItemToBlacklist(new ItemStack(ModBlocks.quantumChest));
registry.getJeiHelpers().getItemBlacklist().addItemToBlacklist(new ItemStack(ModBlocks.quantumTank));
}
2016-03-25 10:47:34 +01:00
}
2015-11-29 11:42:34 +01:00
}