TechReborn/src/main/java/techreborn/compat/nei/NEIConfig.java

70 lines
2.5 KiB
Java
Raw Normal View History

2015-04-14 01:12:24 +02:00
package techreborn.compat.nei;
import codechicken.nei.recipe.GuiCraftingRecipe;
import codechicken.nei.recipe.TemplateRecipeHandler;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.inventory.GuiContainer;
2015-05-08 21:29:13 +02:00
import scala.tools.nsc.backend.icode.analysis.TypeFlowAnalysis;
import techreborn.compat.nei.recipes.AlloySmelterRecipeHandler;
import techreborn.compat.nei.recipes.AssemblingMachineRecipeHandler;
2015-05-08 21:29:13 +02:00
import techreborn.compat.nei.recipes.GenericRecipeHander;
import techreborn.compat.nei.recipes.ImplosionCompressorRecipeHandler;
import techreborn.compat.nei.recipes.LatheRecipeHandler;
2015-04-24 15:20:09 +02:00
import techreborn.lib.ModInfo;
2015-04-14 01:12:24 +02:00
import codechicken.nei.api.API;
import codechicken.nei.api.IConfigureNEI;
2015-04-15 17:23:12 +02:00
public class NEIConfig implements IConfigureNEI {
2015-04-14 01:12:24 +02:00
2015-04-24 15:20:09 +02:00
@Override
public String getName()
{
return ModInfo.MOD_ID;
}
@Override
public String getVersion()
{
return ModInfo.MOD_VERSION;
}
public static BlastFurnaceRecipeHandler blastFurnaceRecipeHandle;
2015-04-24 15:20:09 +02:00
@Override
2015-05-01 21:07:37 +02:00
public void loadConfig() {
CentrifugeRecipeHandler centrifugeRecipeHandler = new CentrifugeRecipeHandler();
ShapedRollingMachineHandler shapedRollingMachineHandler = new ShapedRollingMachineHandler();
ShapelessRollingMachineHandler shapelessRollingMachineHandler = new ShapelessRollingMachineHandler();
NEIConfig.blastFurnaceRecipeHandle = new BlastFurnaceRecipeHandler();
2015-04-24 15:20:09 +02:00
2015-05-08 21:29:13 +02:00
ImplosionCompressorRecipeHandler implosion = new ImplosionCompressorRecipeHandler();
API.registerUsageHandler(implosion);
API.registerRecipeHandler(implosion);
AlloySmelterRecipeHandler alloy = new AlloySmelterRecipeHandler();
API.registerUsageHandler(alloy);
API.registerRecipeHandler(alloy);
AssemblingMachineRecipeHandler assembling = new AssemblingMachineRecipeHandler();
API.registerUsageHandler(assembling);
API.registerRecipeHandler(assembling);
LatheRecipeHandler lathe = new LatheRecipeHandler();
API.registerUsageHandler(lathe);
API.registerRecipeHandler(lathe);
2015-05-08 21:29:13 +02:00
2015-05-01 21:07:37 +02:00
API.registerRecipeHandler(centrifugeRecipeHandler);
API.registerUsageHandler(centrifugeRecipeHandler);
2015-04-24 15:20:09 +02:00
2015-05-01 21:07:37 +02:00
API.registerUsageHandler(shapedRollingMachineHandler);
API.registerRecipeHandler(shapedRollingMachineHandler);
2015-04-29 17:02:01 +02:00
2015-05-01 21:07:37 +02:00
API.registerUsageHandler(shapelessRollingMachineHandler);
API.registerRecipeHandler(shapelessRollingMachineHandler);
2015-04-14 01:12:24 +02:00
API.registerUsageHandler(NEIConfig.blastFurnaceRecipeHandle);
API.registerRecipeHandler(NEIConfig.blastFurnaceRecipeHandle);
2015-05-01 21:07:37 +02:00
}
2015-04-14 01:12:24 +02:00
}