aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormiozune <miozune@gmail.com>2022-12-13 16:01:27 +0900
committerGitHub <noreply@github.com>2022-12-13 15:01:27 +0800
commita3bc1803e72259da2948f8db91ee5e2af883d327 (patch)
tree0f479b4684d0f7554d258fc3420b11d17ccfed5f /src
parentcf42256336806e60928351634575c50451122119 (diff)
downloadGT5-Unofficial-a3bc1803e72259da2948f8db91ee5e2af883d327.tar.gz
GT5-Unofficial-a3bc1803e72259da2948f8db91ee5e2af883d327.tar.bz2
GT5-Unofficial-a3bc1803e72259da2948f8db91ee5e2af883d327.zip
Add to NEI RecipeCatalyst (#1)
Diffstat (limited to 'src')
-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);
+ }
+}