aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/GoodGenerator/CrossMod/NEI/IMCForNEI.java
blob: e4514df282ab1012b9e9e34726c778ace83b5710 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package GoodGenerator.CrossMod.NEI;

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, "GoodGenerator.CrossMod.NEI.NeutronActivatorHandler", "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", "Good Generator");
        aNBT.setString("modId", "GoodGenerator");
        aNBT.setBoolean("modRequired", true);
        aNBT.setString("itemName", aBlock);
        aNBT.setInteger("handlerHeight", 135);
        aNBT.setInteger("handlerWidth", 166);
        aNBT.setInteger("maxRecipesPerPage", 1);
        aNBT.setInteger("yShift", 6);
    }
}