mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-25 14:24:37 +00:00
39 lines
1.5 KiB
Java
39 lines
1.5 KiB
Java
package WayofTime.alchemicalWizardry.client.nei;
|
|
|
|
import net.minecraft.nbt.NBTTagCompound;
|
|
|
|
import cpw.mods.fml.common.event.FMLInterModComms;
|
|
|
|
public class IMCForNEI {
|
|
|
|
public static void IMCSender() {
|
|
sendHandler("alchemicalwizardry.meteor", "AWWayofTime:masterStone", 181);
|
|
sendCatalyst("alchemicalwizardry.meteor", "AWWayofTime:masterStone");
|
|
sendCatalyst("alchemicalwizardry.bindingritual", "AWWayofTime:masterStone");
|
|
}
|
|
|
|
private static void sendHandler(String handlerName, String stack, int height) {
|
|
NBTTagCompound NBT = new NBTTagCompound();
|
|
NBT.setString("handler", handlerName);
|
|
NBT.setString("modName", "Blood Magic");
|
|
NBT.setString("modId", "AWWayofTime");
|
|
NBT.setBoolean("modRequired", true);
|
|
NBT.setString("itemName", stack);
|
|
NBT.setInteger("handlerHeight", height);
|
|
NBT.setInteger("maxRecipesPerPage", 1);
|
|
FMLInterModComms.sendMessage("NotEnoughItems", "registerHandlerInfo", NBT);
|
|
}
|
|
|
|
private static void sendCatalyst(String handlerName, String stack, int priority) {
|
|
NBTTagCompound aNBT = new NBTTagCompound();
|
|
aNBT.setString("handlerID", handlerName);
|
|
aNBT.setString("itemName", stack);
|
|
aNBT.setInteger("priority", priority);
|
|
FMLInterModComms.sendMessage("NotEnoughItems", "registerCatalystInfo", aNBT);
|
|
}
|
|
|
|
private static void sendCatalyst(String handlerName, String stack) {
|
|
sendCatalyst(handlerName, stack, 0);
|
|
}
|
|
}
|