diff options
| author | Martin Robertz <dream-master@gmx.net> | 2021-11-28 17:36:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-28 17:36:30 +0100 |
| commit | d016a5221be86799ac1264aa7e6231d959bfc796 (patch) | |
| tree | 816ae8f2e4ce9241249ebc5151d071ffb48b08b1 /src/main/java/gregtech/common | |
| parent | a2836a7364c0967e89b0707e7ca5b1df2320f6d9 (diff) | |
| parent | a3da11bb7c82ddec2409989314adeb3076c0157b (diff) | |
| download | GT5-Unofficial-d016a5221be86799ac1264aa7e6231d959bfc796.tar.gz GT5-Unofficial-d016a5221be86799ac1264aa7e6231d959bfc796.tar.bz2 GT5-Unofficial-d016a5221be86799ac1264aa7e6231d959bfc796.zip | |
Merge pull request #758 from GTNewHorizons/kill-tiny-dust
Convert tiny dust output in oreproc to chanced full dust output
Diffstat (limited to 'src/main/java/gregtech/common')
| -rw-r--r-- | src/main/java/gregtech/common/GT_RecipeAdder.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/GT_RecipeAdder.java b/src/main/java/gregtech/common/GT_RecipeAdder.java index 1571ef7b46..4ba4601490 100644 --- a/src/main/java/gregtech/common/GT_RecipeAdder.java +++ b/src/main/java/gregtech/common/GT_RecipeAdder.java @@ -595,6 +595,20 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { } @Override + public boolean addOreWasherRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, FluidStack aFluidInput, int[] aChances, int aDuration, int aEUt) { + if ((aInput == null) || (aFluidInput == null) || ((aOutput1 == null) || (aOutput2 == null) || (aOutput3 == null))) { + return false; + } + if ((aDuration = GregTech_API.sRecipeFile.get("orewasher", aInput, aDuration)) <= 0) { + return false; + } + GT_Recipe.GT_Recipe_Map.sOreWasherRecipes.addRecipe(true, new ItemStack[]{aInput}, new ItemStack[]{aOutput1, aOutput2, aOutput3}, null, aChances, new FluidStack[]{aFluidInput}, null, aDuration, aEUt, 0); + return true; + } + + + + @Override public boolean addImplosionRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2) { if ((aInput1 == null) || (aOutput1 == null)) { return false; @@ -775,6 +789,18 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { } @Override + public boolean addThermalCentrifugeRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, int[] aChances, int aDuration, int aEUt) { + if ((aInput == null) || (aOutput1 == null)) { + return false; + } + if (!GregTech_API.sRecipeFile.get("thermalcentrifuge", aInput, true)) { + return false; + } + GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes.addRecipe(true, new ItemStack[]{aInput}, new ItemStack[]{aOutput1, aOutput2, aOutput3}, null, aChances, null, null, aDuration, aEUt, 0); + return true; + } + + @Override public boolean addAmplifier(ItemStack aAmplifierItem, int aDuration, int aAmplifierAmountOutputted) { if ((aAmplifierItem == null) || (aAmplifierAmountOutputted <= 0)) { return false; |
