mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-19 11:49:33 +00:00
Adds Draconic Evolution Fusion Crafter (#17)
* Implements about 2/3 of the DE core crafter * Fix block textures. Controller is disabled+not showing up anyway * Block textures work, controller ingame, main structure check works * Forgot * Structure check finally fully works * Structure * Fix structure * Casings * Recipe map * NEI * No scala * Assline recipe * Nerf overclock * Change the name to Draconic Evolution Fusion Crafter * Fix * tx Co-authored-by: kuba6000 <[email protected]>
This commit is contained in:
1 parent
1715092471
commit
dcb7f23091
20 files changed
+525
-54
No files matched your search
@@ -0,0 +1,60 @@
|
||||
package emt.nei;
|
||||
|
||||
import codechicken.nei.api.IConfigureNEI;
|
||||
import cpw.mods.fml.common.event.FMLInterModComms;
|
||||
import emt.EMT;
|
||||
import emt.gthandler.common.loader.EMT_RecipeAdder;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class NEI_Config implements IConfigureNEI {
|
||||
|
||||
public static boolean isAdded = true;
|
||||
|
||||
@Override
|
||||
public void loadConfig() {
|
||||
NEI_Config.isAdded = false;
|
||||
new FusionCraftingHandler(EMT_RecipeAdder.sFusionCraftingRecipes);
|
||||
NEI_Config.isAdded = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "EMT";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getVersion() {
|
||||
return EMT.VERSION;
|
||||
}
|
||||
|
||||
public static void Init() {
|
||||
sendHandler("emt.nei.FusionCraftingHandler", "gregtech:gt.blockmachines:5001");
|
||||
sendCatalyst("emt.recipe.fusioncrafting", "gregtech:gt.blockmachines:5001");
|
||||
}
|
||||
|
||||
private static void sendHandler(String name, String block) {
|
||||
NBTTagCompound aNBT = new NBTTagCompound();
|
||||
aNBT.setString("handler", name);
|
||||
aNBT.setString("modName", EMT.NAME);
|
||||
aNBT.setString("modId", EMT.MOD_ID);
|
||||
aNBT.setBoolean("modRequired", true);
|
||||
aNBT.setString("itemName", block);
|
||||
aNBT.setInteger("handlerHeight", 135);
|
||||
aNBT.setInteger("handlerWidth", 166);
|
||||
aNBT.setInteger("maxRecipesPerPage", 2);
|
||||
aNBT.setInteger("yShift", 6);
|
||||
FMLInterModComms.sendMessage("NotEnoughItems", "registerHandlerInfo", aNBT);
|
||||
}
|
||||
|
||||
private static void sendCatalyst(String name, String stack, int priority) {
|
||||
NBTTagCompound aNBT = new NBTTagCompound();
|
||||
aNBT.setString("handlerID", name);
|
||||
aNBT.setString("itemName", stack);
|
||||
aNBT.setInteger("priority", priority);
|
||||
FMLInterModComms.sendMessage("NotEnoughItems", "registerCatalystInfo", aNBT);
|
||||
}
|
||||
|
||||
private static void sendCatalyst(String name, String stack) {
|
||||
sendCatalyst(name, stack, 0);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user