2013-08-27 00:49:32 +02:00
|
|
|
package mekanism.client.nei;
|
2013-08-10 21:52:59 +02:00
|
|
|
|
2014-01-10 02:47:06 +01:00
|
|
|
import mekanism.client.gui.GuiChemicalInfuser;
|
2013-12-24 06:23:30 +01:00
|
|
|
import mekanism.client.gui.GuiChemicalInjectionChamber;
|
2014-01-10 00:06:44 +01:00
|
|
|
import mekanism.client.gui.GuiChemicalOxidizer;
|
2013-08-27 00:49:32 +02:00
|
|
|
import mekanism.client.gui.GuiCombiner;
|
|
|
|
import mekanism.client.gui.GuiCrusher;
|
|
|
|
import mekanism.client.gui.GuiEnrichmentChamber;
|
|
|
|
import mekanism.client.gui.GuiMetallurgicInfuser;
|
|
|
|
import mekanism.client.gui.GuiOsmiumCompressor;
|
|
|
|
import mekanism.client.gui.GuiPurificationChamber;
|
2013-08-10 21:52:59 +02:00
|
|
|
import mekanism.common.Mekanism;
|
|
|
|
import codechicken.nei.api.API;
|
|
|
|
import codechicken.nei.api.IConfigureNEI;
|
|
|
|
|
|
|
|
public class NEIMekanismConfig implements IConfigureNEI
|
|
|
|
{
|
|
|
|
@Override
|
|
|
|
public void loadConfig()
|
|
|
|
{
|
|
|
|
API.registerRecipeHandler(new EnrichmentChamberRecipeHandler());
|
|
|
|
API.registerUsageHandler(new EnrichmentChamberRecipeHandler());
|
2013-08-16 17:50:58 +02:00
|
|
|
|
2013-08-10 21:52:59 +02:00
|
|
|
API.registerRecipeHandler(new OsmiumCompressorRecipeHandler());
|
|
|
|
API.registerUsageHandler(new OsmiumCompressorRecipeHandler());
|
2013-08-16 17:50:58 +02:00
|
|
|
|
2013-08-10 21:52:59 +02:00
|
|
|
API.registerRecipeHandler(new CrusherRecipeHandler());
|
|
|
|
API.registerUsageHandler(new CrusherRecipeHandler());
|
2013-08-16 17:50:58 +02:00
|
|
|
|
2013-08-10 21:52:59 +02:00
|
|
|
API.registerRecipeHandler(new CombinerRecipeHandler());
|
|
|
|
API.registerUsageHandler(new CombinerRecipeHandler());
|
2013-08-16 17:50:58 +02:00
|
|
|
|
2013-08-10 21:52:59 +02:00
|
|
|
API.registerRecipeHandler(new MetallurgicInfuserRecipeHandler());
|
|
|
|
API.registerUsageHandler(new MetallurgicInfuserRecipeHandler());
|
2013-08-16 17:50:58 +02:00
|
|
|
|
2013-08-10 21:52:59 +02:00
|
|
|
API.registerRecipeHandler(new PurificationChamberRecipeHandler());
|
|
|
|
API.registerUsageHandler(new PurificationChamberRecipeHandler());
|
2013-08-16 17:50:58 +02:00
|
|
|
|
2013-12-24 06:23:30 +01:00
|
|
|
API.registerRecipeHandler(new ChemicalInjectionChamberRecipeHandler());
|
|
|
|
API.registerUsageHandler(new ChemicalInjectionChamberRecipeHandler());
|
|
|
|
|
2013-08-10 21:52:59 +02:00
|
|
|
API.registerRecipeHandler(new MekanismRecipeHandler());
|
|
|
|
API.registerUsageHandler(new MekanismRecipeHandler());
|
|
|
|
|
2014-01-10 00:06:44 +01:00
|
|
|
API.registerRecipeHandler(new ChemicalOxidizerRecipeHandler());
|
|
|
|
API.registerUsageHandler(new ChemicalOxidizerRecipeHandler());
|
|
|
|
|
2014-01-10 02:47:06 +01:00
|
|
|
API.registerRecipeHandler(new ChemicalInfuserRecipeHandler());
|
|
|
|
API.registerUsageHandler(new ChemicalInfuserRecipeHandler());
|
|
|
|
|
2013-11-30 03:31:39 +01:00
|
|
|
API.setGuiOffset(GuiEnrichmentChamber.class, 16, 6);
|
|
|
|
API.setGuiOffset(GuiOsmiumCompressor.class, 16, 6);
|
|
|
|
API.setGuiOffset(GuiCrusher.class, 16, 6);
|
|
|
|
API.setGuiOffset(GuiCombiner.class, 16, 6);
|
|
|
|
API.setGuiOffset(GuiPurificationChamber.class, 16, 6);
|
2013-12-24 06:23:30 +01:00
|
|
|
API.setGuiOffset(GuiChemicalInjectionChamber.class, 16, 6);
|
2013-08-10 21:52:59 +02:00
|
|
|
API.setGuiOffset(GuiMetallurgicInfuser.class, 5, 15);
|
2014-01-10 02:47:06 +01:00
|
|
|
API.setGuiOffset(GuiChemicalOxidizer.class, ChemicalOxidizerRecipeHandler.xOffset, ChemicalOxidizerRecipeHandler.yOffset);
|
|
|
|
API.setGuiOffset(GuiChemicalInfuser.class, ChemicalInfuserRecipeHandler.xOffset, ChemicalInfuserRecipeHandler.yOffset);
|
2013-08-10 21:52:59 +02:00
|
|
|
|
|
|
|
API.hideItem(Mekanism.boundingBlockID);
|
2013-11-12 04:52:12 +01:00
|
|
|
API.hideItem(Mekanism.ItemProxy.itemID);
|
2013-08-10 21:52:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getName()
|
|
|
|
{
|
|
|
|
return "Mekanism NEI Plugin";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getVersion()
|
|
|
|
{
|
2014-01-10 02:47:06 +01:00
|
|
|
return "1.1";
|
2013-08-10 21:52:59 +02:00
|
|
|
}
|
|
|
|
}
|