From 8c2a3607aac1b58f0c6e3a6bff0c9ca3825cbf12 Mon Sep 17 00:00:00 2001 From: GlodBlock <1356392126@qq.com> Date: Fri, 27 Aug 2021 13:19:41 +0800 Subject: fix some tpyo and change something's name --- .../java/GoodGenerator/CrossMod/NEI/IMCForNEI.java | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/main/java/GoodGenerator/CrossMod/NEI/IMCForNEI.java (limited to 'src/main/java/GoodGenerator/CrossMod/NEI/IMCForNEI.java') diff --git a/src/main/java/GoodGenerator/CrossMod/NEI/IMCForNEI.java b/src/main/java/GoodGenerator/CrossMod/NEI/IMCForNEI.java new file mode 100644 index 0000000000..c949bd43d2 --- /dev/null +++ b/src/main/java/GoodGenerator/CrossMod/NEI/IMCForNEI.java @@ -0,0 +1,24 @@ +package GoodGenerator.CrossMod.NEI; + +import GoodGenerator.Main.GoodGenerator; +import cpw.mods.fml.common.event.FMLInterModComms; +import net.minecraft.nbt.NBTTagCompound; + +public class IMCForNEI { + public static void IMCSender() { + NBTTagCompound info = new NBTTagCompound(); + setNBTInfo(info, "gg.recipe.neutron_activator", "gregtech:gt.blockmachines:32013"); + FMLInterModComms.sendMessage("NotEnoughItems", "registerHandlerInfo", info); + } + + private static void setNBTInfo(NBTTagCompound aNBT, String aName, String aBlock) { + aNBT.setString("handler", aName); + aNBT.setString("modName", GoodGenerator.MOD_NAME); + aNBT.setString("modId", GoodGenerator.MOD_ID); + aNBT.setBoolean("modRequired", true); + aNBT.setString("itemName", aBlock); + aNBT.setInteger("handlerHeight", 135); + aNBT.setInteger("handlerWidth", 166); + aNBT.setInteger("maxRecipesPerPage", 1); + } +} -- cgit