aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/glease/ggfab
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/glease/ggfab')
-rw-r--r--src/main/java/net/glease/ggfab/GigaGramFab.java2
-rw-r--r--src/main/java/net/glease/ggfab/nei/IMCForNEI.java23
2 files changed, 25 insertions, 0 deletions
diff --git a/src/main/java/net/glease/ggfab/GigaGramFab.java b/src/main/java/net/glease/ggfab/GigaGramFab.java
index 14a62ea421..ce6505b9bd 100644
--- a/src/main/java/net/glease/ggfab/GigaGramFab.java
+++ b/src/main/java/net/glease/ggfab/GigaGramFab.java
@@ -5,6 +5,7 @@ import cpw.mods.fml.common.event.*;
import gregtech.api.GregTech_API;
import gregtech.loaders.materialprocessing.ProcessingModSupport;
import net.glease.ggfab.mte.MTE_AdvAssLine;
+import net.glease.ggfab.nei.IMCForNEI;
@Mod(modid = GGConstants.MODID, version = GGConstants.VERSION, name = GGConstants.MODNAME, acceptedMinecraftVersions = "[1.7.10]", dependencies = "required-after:IC2;required-before:gregtech")
public class GigaGramFab {
@@ -25,6 +26,7 @@ public class GigaGramFab {
@Mod.EventHandler
public void init(FMLInitializationEvent event) {
+ IMCForNEI.IMCSender();
}
@Mod.EventHandler
diff --git a/src/main/java/net/glease/ggfab/nei/IMCForNEI.java b/src/main/java/net/glease/ggfab/nei/IMCForNEI.java
new file mode 100644
index 0000000000..ed96005bd4
--- /dev/null
+++ b/src/main/java/net/glease/ggfab/nei/IMCForNEI.java
@@ -0,0 +1,23 @@
+package net.glease.ggfab.nei;
+
+import cpw.mods.fml.common.event.FMLInterModComms;
+import net.minecraft.nbt.NBTTagCompound;
+
+public class IMCForNEI {
+
+ public static void IMCSender() {
+ sendCatalyst("gt.recipe.fakeAssemblylineProcess", "gregtech:gt.blockmachines:13532", -1);
+ }
+
+ 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);
+ }
+}