1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
package gregtech.nei;
import net.minecraft.nbt.NBTTagCompound;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.event.FMLInterModComms;
public class IMCForNEI {
public static void IMCSender() {
if (!Loader.isModLoaded("NotEnoughItems")) {
return;
}
sendHandler("gt.recipe.transcendentplasmamixerrecipes", "gregtech:gt.blockmachines:1006", 1);
sendCatalyst("gt.recipe.transcendentplasmamixerrecipes", "gregtech:gt.blockmachines:1006");
sendHandler("gt.recipe.plasmaforge", "gregtech:gt.blockmachines:1004", 1);
sendCatalyst("gt.recipe.plasmaforge", "gregtech:gt.blockmachines:1004");
sendHandler("gt.recipe.complexfusionreactor", "gregtech:gt.blockmachines:1193");
sendCatalyst("gt.recipe.complexfusionreactor", "gregtech:gt.blockmachines:1193");
sendCatalyst("gt.recipe.complexfusionreactor", "gregtech:gt.blockmachines:1194");
sendCatalyst("gt.recipe.complexfusionreactor", "gregtech:gt.blockmachines:1195");
sendCatalyst("gt.recipe.gasturbinefuel", "gregtech:gt.blockmachines:1005", -1);
sendCatalyst("gt.recipe.gasturbinefuel", "gregtech:gt.blockmachines:1118");
sendCatalyst("gt.recipe.gasturbinefuel", "gregtech:gt.blockmachines:1119");
// overwrite yShift to 6
sendHandler("gt.recipe.fakeAssemblylineProcess", "gregtech:gt.blockmachines:1170");
sendHandler("gt.recipe.nanoforge", "gregtech:gt.blockmachines:357");
sendCatalyst("gt.recipe.nanoforge", "gregtech:gt.blockmachines:357");
sendHandler("gt.recipe.pcbfactory", "gregtech:gt.blockmachines:356");
sendCatalyst("gt.recipe.pcbfactory", "gregtech:gt.blockmachines:356");
sendHandler("gt.recipe.ic2nuke", "IC2:blockGenerator:5");
sendCatalyst("gt.recipe.ic2nuke", "IC2:blockGenerator:5");
}
private static void sendHandler(String aName, String aBlock, int aMaxRecipesPerPage) {
NBTTagCompound aNBT = new NBTTagCompound();
aNBT.setString("handler", aName);
aNBT.setString("modName", "GregTech");
aNBT.setString("modId", "gregtech");
aNBT.setBoolean("modRequired", true);
aNBT.setString("itemName", aBlock);
aNBT.setInteger("handlerHeight", 135);
aNBT.setInteger("handlerWidth", 166);
aNBT.setInteger("maxRecipesPerPage", aMaxRecipesPerPage);
aNBT.setInteger("yShift", 6);
FMLInterModComms.sendMessage("NotEnoughItems", "registerHandlerInfo", aNBT);
}
private static void sendHandler(String aName, String aBlock) {
sendHandler(aName, aBlock, 2);
}
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);
}
}
|