From c964170c46c7242097fcd3076ba61a7851191472 Mon Sep 17 00:00:00 2001 From: Jordan Byrne Date: Thu, 7 Dec 2017 16:31:29 +1000 Subject: + Added the component assembler. (Makes Motors, Pistons, etc.) % More Nitro work. --- .../gtPlusPlus/xmod/gregtech/api/enums/GregtechItemList.java | 6 +++++- .../api/interfaces/internal/IGregtech_RecipeAdder.java | 12 ++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) (limited to 'src/Java/gtPlusPlus/xmod/gregtech/api') diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/enums/GregtechItemList.java b/src/Java/gtPlusPlus/xmod/gregtech/api/enums/GregtechItemList.java index 7a0df6c43c..fd548a208b 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/api/enums/GregtechItemList.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/api/enums/GregtechItemList.java @@ -269,7 +269,11 @@ public enum GregtechItemList implements GregtechItemContainer { Industrial_CuttingFactoryController, //Tiny Fusion - Miniature_Fusion, + Miniature_Fusion, + + //Component Makers + Machine_LV_Component_Maker, Machine_MV_Component_Maker, Machine_HV_Component_Maker, + Machine_EV_Component_Maker, Machine_IV_Component_Maker, diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/IGregtech_RecipeAdder.java b/src/Java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/IGregtech_RecipeAdder.java index 842f518674..396250dbf7 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/IGregtech_RecipeAdder.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/IGregtech_RecipeAdder.java @@ -124,5 +124,17 @@ public interface IGregtech_RecipeAdder { public boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4, FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, int aDuration, int aEUt); + + /** + * Adds a Recipe for the Machine Component Assembler. (up to 6 Inputs) + * + * @param aInputs = ItemStack[] (not null, and respects StackSize) + * @param aFluidInput = Input of a fluid (can be null, and respects StackSize) + * @param aOutput1 = Output ItemStack (not null, and respects StackSize) + * @param aDuration = Duration (must be >= 0) + * @param aEUt = EU per tick needed for heating up (must be >= 0) + * @return true if the Recipe got added, otherwise false. + */ + public boolean addComponentMakerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput1, int aDuration, int aEUt); } -- cgit