diff options
author | Martin Robertz <dream-master@gmx.net> | 2022-08-31 10:43:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-31 10:43:06 +0200 |
commit | 0c50a48fc4d4448c084ca3535af37b4981dd2d7c (patch) | |
tree | 28077f6375f883a15cc91276677c857e616d83aa /src/main/java/gregtech/common | |
parent | 4927a8885381ca48479be71e7cdb37aae9cbf5fd (diff) | |
download | GT5-Unofficial-0c50a48fc4d4448c084ca3535af37b4981dd2d7c.tar.gz GT5-Unofficial-0c50a48fc4d4448c084ca3535af37b4981dd2d7c.tar.bz2 GT5-Unofficial-0c50a48fc4d4448c084ca3535af37b4981dd2d7c.zip |
Two slots wiremill (#1324)
* add a circuit slot to wiremil
* add circuits to wire recipes
* add 2 input slots to Wiremil
* exchange circuit and material slot
* add 2x-16x wires to wiremil
* add missing 12x wires
* add slot migration code (#1326)
* spotlessApply (#1327)
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Co-authored-by: GitHub GTNH Actions <>
Co-authored-by: Glease <4586901+Glease@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/main/java/gregtech/common')
-rw-r--r-- | src/main/java/gregtech/common/GT_RecipeAdder.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/GT_RecipeAdder.java b/src/main/java/gregtech/common/GT_RecipeAdder.java index a3fd8013c2..f75712a887 100644 --- a/src/main/java/gregtech/common/GT_RecipeAdder.java +++ b/src/main/java/gregtech/common/GT_RecipeAdder.java @@ -1147,6 +1147,27 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { } @Override + public boolean addWiremillRecipe(ItemStack aInput, ItemStack aCircuit, ItemStack aOutput, int aDuration, int aEUt) { + if ((aInput == null) || (aOutput == null)) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("wiremill", aInput, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sWiremillRecipes.addRecipe( + true, + new ItemStack[] {aInput, aCircuit}, + new ItemStack[] {aOutput}, + null, + null, + null, + aDuration, + aEUt, + 0); + return true; + } + + @Override public boolean addPolarizerRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt) { if ((aInput == null) || (aOutput == null)) { return false; |