From a132001f964faee20cc035693987c10cb19a02d4 Mon Sep 17 00:00:00 2001 From: GDCloud <93287602+GDCloudstrike@users.noreply.github.com> Date: Mon, 30 Jan 2023 07:22:52 +0100 Subject: [PATCH] Add chance to sifter method (#1705) --- .../gregtech/api/interfaces/internal/IGT_RecipeAdder.java | 4 +++- src/main/java/gregtech/common/GT_RecipeAdder.java | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/gregtech/api/interfaces/internal/IGT_RecipeAdder.java b/src/main/java/gregtech/api/interfaces/internal/IGT_RecipeAdder.java index 235111c6efb..fb5067c623b 100644 --- a/src/main/java/gregtech/api/interfaces/internal/IGT_RecipeAdder.java +++ b/src/main/java/gregtech/api/interfaces/internal/IGT_RecipeAdder.java @@ -1187,12 +1187,13 @@ boolean addFormingPressRecipe( */ boolean addSifterRecipe(ItemStack aItemToSift, ItemStack[] aSiftedItems, int[] aChances, int aDuration, int aEUt); /** - * Adds a Generalised Laser Engraver Recipe. + * Adds a Generalised Sifter Recipe. * * @param ItemInputArray Array of input items. * @param FluidInputArray Array of output items. * @param OutputItemArray Array of input fluids. * @param FluidOutputArray Array of output items. + * @param aChances Array of chances for outputs. * @param aDuration Must be > 0. Duration in ticks. * @param aEUt Should be > 0. EU/t. * @param aCleanroom Boolean for usage of cleanroom in recipe. @@ -1202,6 +1203,7 @@ boolean addSifterRecipe( FluidStack[] FluidInputArray, ItemStack[] OutputItemArray, FluidStack[] FluidOutputArray, + int[] aChances, int aDuration, int aEUt, boolean aCleanroom); diff --git a/src/main/java/gregtech/common/GT_RecipeAdder.java b/src/main/java/gregtech/common/GT_RecipeAdder.java index 961aba440ff..1d0b4795fee 100644 --- a/src/main/java/gregtech/common/GT_RecipeAdder.java +++ b/src/main/java/gregtech/common/GT_RecipeAdder.java @@ -2874,6 +2874,7 @@ public boolean addSifterRecipe( FluidStack[] FluidInputArray, ItemStack[] OutputItemArray, FluidStack[] FluidOutputArray, + int[] aChances, int aDuration, int aEUt, boolean aCleanroom) { @@ -2882,7 +2883,7 @@ public boolean addSifterRecipe( ItemInputArray, OutputItemArray, null, - null, + aChances, FluidInputArray, FluidOutputArray, aDuration,