mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-10-26 14:24:00 +00:00
Remove individual NEI handler (#55)
This commit is contained in:
1 parent
92b3fb8388
commit
2690cd2cd8
4 files changed
+3
-37
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
||||
// Add your dependencies here
|
||||
|
||||
dependencies {
|
||||
compile 'com.github.GTNewHorizons:GT5-Unofficial:5.09.41.161:dev'
|
||||
compile 'com.github.GTNewHorizons:GT5-Unofficial:5.09.41.195:dev'
|
||||
compile 'com.github.GTNewHorizons:Baubles:1.0.1.14:dev'
|
||||
|
||||
compile 'net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev'
|
||||
|
||||
@@ -35,7 +35,7 @@ public class EMT_RecipeAdder {
|
||||
1,
|
||||
E,
|
||||
false,
|
||||
false)
|
||||
true)
|
||||
.setSlotOverlay(false, false, EMT_UITextures.OVERLAY_SLOT_FUSION_CRAFTING);
|
||||
|
||||
public static void addFusionCraftingRecipe(
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
package emt.nei;
|
||||
|
||||
import static emt.nei.NEI_Config.isAdded;
|
||||
|
||||
import codechicken.nei.recipe.GuiCraftingRecipe;
|
||||
import codechicken.nei.recipe.GuiUsageRecipe;
|
||||
import codechicken.nei.recipe.TemplateRecipeHandler;
|
||||
import cpw.mods.fml.common.event.FMLInterModComms;
|
||||
import gregtech.api.enums.GT_Values;
|
||||
import gregtech.api.util.GT_Recipe;
|
||||
import gregtech.nei.GT_NEI_DefaultHandler;
|
||||
|
||||
public class FusionCraftingHandler extends GT_NEI_DefaultHandler {
|
||||
// TODO: BETTER GUI <3
|
||||
public FusionCraftingHandler(GT_Recipe.GT_Recipe_Map aRecipeMap) {
|
||||
super(aRecipeMap);
|
||||
if (!isAdded) {
|
||||
FMLInterModComms.sendRuntimeMessage(
|
||||
GT_Values.GT,
|
||||
"NEIPlugins",
|
||||
"register-crafting-handler",
|
||||
"emt@" + this.getRecipeName() + "@" + this.getOverlayIdentifier());
|
||||
GuiCraftingRecipe.craftinghandlers.add(this);
|
||||
GuiUsageRecipe.usagehandlers.add(this);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public TemplateRecipeHandler newInstance() {
|
||||
return new FusionCraftingHandler(this.mRecipeMap);
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,6 @@ package emt.nei;
|
||||
import codechicken.nei.api.IConfigureNEI;
|
||||
import cpw.mods.fml.common.event.FMLInterModComms;
|
||||
import emt.EMT;
|
||||
import emt.gthandler.common.loader.EMT_RecipeAdder;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class NEI_Config implements IConfigureNEI {
|
||||
@@ -13,7 +12,6 @@ public class NEI_Config implements IConfigureNEI {
|
||||
@Override
|
||||
public void loadConfig() {
|
||||
NEI_Config.isAdded = false;
|
||||
new FusionCraftingHandler(EMT_RecipeAdder.sFusionCraftingRecipes);
|
||||
NEI_Config.isAdded = true;
|
||||
}
|
||||
|
||||
@@ -28,7 +26,7 @@ public class NEI_Config implements IConfigureNEI {
|
||||
}
|
||||
|
||||
public static void Init() {
|
||||
sendHandler("emt.nei.FusionCraftingHandler", "gregtech:gt.blockmachines:5001");
|
||||
sendHandler("emt.recipe.fusioncrafting", "gregtech:gt.blockmachines:5001");
|
||||
sendCatalyst("emt.recipe.fusioncrafting", "gregtech:gt.blockmachines:5001");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user