diff options
-rw-r--r-- | dependencies.gradle | 2 | ||||
-rw-r--r-- | src/main/java/com/github/bartimaeusnek/bartworks/MainMod.java | 2 | ||||
-rw-r--r-- | src/main/java/com/github/bartimaeusnek/bartworks/neiHandler/IMCForNEI.java | 23 |
3 files changed, 26 insertions, 1 deletions
diff --git a/dependencies.gradle b/dependencies.gradle index 8b725db7c8..34df9bf9d4 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -4,7 +4,7 @@ dependencies { compile("com.github.GTNewHorizons:GT5-Unofficial:5.09.40.42:dev") compile("com.github.GTNewHorizons:StructureLib:1.0.15:dev") compile("com.github.GTNewHorizons:TecTech:4.10.18:dev") - compile("com.github.GTNewHorizons:NotEnoughItems:2.2.5-GTNH:dev") + compile("com.github.GTNewHorizons:NotEnoughItems:2.2.12-GTNH:dev") compile("com.github.GTNewHorizons:TinkersConstruct:1.9.0.13-GTNH:dev") compile("com.github.GTNewHorizons:CodeChickenLib:1.1.5.3:dev") compile("com.github.GTNewHorizons:CodeChickenCore:1.1.3:dev") diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/MainMod.java b/src/main/java/com/github/bartimaeusnek/bartworks/MainMod.java index 1f8ed0487c..f0b1be2d03 100644 --- a/src/main/java/com/github/bartimaeusnek/bartworks/MainMod.java +++ b/src/main/java/com/github/bartimaeusnek/bartworks/MainMod.java @@ -32,6 +32,7 @@ import com.github.bartimaeusnek.bartworks.client.textures.PrefixTextureLinker; import com.github.bartimaeusnek.bartworks.common.configs.ConfigHandler; import com.github.bartimaeusnek.bartworks.common.loaders.*; import com.github.bartimaeusnek.bartworks.common.net.BW_Network; +import com.github.bartimaeusnek.bartworks.neiHandler.IMCForNEI; import com.github.bartimaeusnek.bartworks.server.EventHandler.ServerEventHandler; import com.github.bartimaeusnek.bartworks.system.material.CircuitGeneration.CircuitImprintLoader; import com.github.bartimaeusnek.bartworks.system.material.CircuitGeneration.CircuitPartLoader; @@ -153,6 +154,7 @@ public final class MainMod { } ItemRegistry.run(); RecipeLoader.run(); + IMCForNEI.IMCSender(); } @Mod.EventHandler diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/neiHandler/IMCForNEI.java b/src/main/java/com/github/bartimaeusnek/bartworks/neiHandler/IMCForNEI.java new file mode 100644 index 0000000000..8622f18462 --- /dev/null +++ b/src/main/java/com/github/bartimaeusnek/bartworks/neiHandler/IMCForNEI.java @@ -0,0 +1,23 @@ +package com.github.bartimaeusnek.bartworks.neiHandler; + +import cpw.mods.fml.common.event.FMLInterModComms; +import net.minecraft.nbt.NBTTagCompound; + +public class IMCForNEI { + public static void IMCSender() { + sendCatalyst("gt.recipe.largechemicalreactor", "gregtech:gt.blockmachines:13366", -10); + sendCatalyst("gt.recipe.craker", "gregtech:gt.blockmachines:13367", -10); + } + + private static void sendCatalyst(String aName, String aStack, int aPriority) { + NBTTagCompound aNBT = new NBTTagCompound(); + aNBT.setString("handlerID", aName); + aNBT.setString("itemName", aStack); + aNBT.setInteger("priority", aPriority); + FMLInterModComms.sendMessage("NotEnoughItems", "registerCatalystInfo", aNBT); + } + + private static void sendCatalyst(String aName, String aStack) { + sendCatalyst(aName, aStack, 0); + } +} |