From 92272c6184e9ee51f1e1309dd09b73b3ff95b7fe Mon Sep 17 00:00:00 2001 From: GitHub GTNH Actions <> Date: Tue, 23 Jul 2024 22:29:23 +0000 Subject: [PATCH] spotlessApply --- .../mods/gregtech/machines/BlastFurnace.java | 4 ++-- .../mods/gregtech/machines/Canner.java | 2 +- .../mods/gregtech/machines/Centrifuge.java | 21 +++++++++++++++---- .../mods/gregtech/machines/ChemicalBath.java | 3 ++- .../mods/gregtech/machines/Electrolyzer.java | 20 ++++++++++++++---- .../machines/ImplosionCompressor.java | 2 +- .../mods/gregtech/machines/Lathe.java | 2 +- .../mods/gregtech/machines/Mixer.java | 6 ++++-- .../mods/gregtech/machines/Separator.java | 3 ++- 9 files changed, 46 insertions(+), 17 deletions(-) diff --git a/src/main/java/gttweaker/mods/gregtech/machines/BlastFurnace.java b/src/main/java/gttweaker/mods/gregtech/machines/BlastFurnace.java index 8663315..8050caa 100644 --- a/src/main/java/gttweaker/mods/gregtech/machines/BlastFurnace.java +++ b/src/main/java/gttweaker/mods/gregtech/machines/BlastFurnace.java @@ -64,7 +64,7 @@ public static void addRecipe(IItemStack[] output, ILiquidStack fluidOutput, IIng protected void applySingleRecipe(ArgIterator i) { ItemStack input1 = i.nextItem(); ItemStack input2 = i.nextItem(); - List inputs =new ArrayList<>(Arrays.asList(input1, input2)); + List inputs = new ArrayList<>(Arrays.asList(input1, input2)); inputs.removeIf(Objects::isNull); FluidStack fluidInput = i.nextFluid(); @@ -115,7 +115,7 @@ protected void applySingleRecipe(ArgIterator i) { FluidStack fluidInput = i.nextFluid(); ItemStack output1 = i.nextItem(); ItemStack output2 = i.nextItem(); - List outputs =new ArrayList<>(Arrays.asList(output1, output2)); + List outputs = new ArrayList<>(Arrays.asList(output1, output2)); outputs.removeIf(Objects::isNull); int duration = i.nextInt(); int eut = i.nextInt(); diff --git a/src/main/java/gttweaker/mods/gregtech/machines/Canner.java b/src/main/java/gttweaker/mods/gregtech/machines/Canner.java index d224c21..98258f9 100644 --- a/src/main/java/gttweaker/mods/gregtech/machines/Canner.java +++ b/src/main/java/gttweaker/mods/gregtech/machines/Canner.java @@ -74,7 +74,7 @@ protected void applySingleRecipe(ArgIterator i) { ItemStack input2 = i.nextItem(); ItemStack output1 = i.nextItem(); ItemStack output2 = i.nextItem(); - List outputs =new ArrayList<>(Arrays.asList(output1, output2)); + List outputs = new ArrayList<>(Arrays.asList(output1, output2)); outputs.removeIf(Objects::isNull); int duration = i.nextInt(); diff --git a/src/main/java/gttweaker/mods/gregtech/machines/Centrifuge.java b/src/main/java/gttweaker/mods/gregtech/machines/Centrifuge.java index db68f93..0acd098 100644 --- a/src/main/java/gttweaker/mods/gregtech/machines/Centrifuge.java +++ b/src/main/java/gttweaker/mods/gregtech/machines/Centrifuge.java @@ -74,7 +74,14 @@ protected void applySingleRecipe(ArgIterator i) { ItemStack input2 = i.nextItem(); FluidStack fluidInput = i.nextFluid(); FluidStack fluidOutput = i.nextFluid(); - List outputs = new ArrayList<>(Arrays.asList(i.nextItem(), i.nextItem(), i.nextItem(), i.nextItem(), i.nextItem(), i.nextItem())); + List outputs = new ArrayList<>( + Arrays.asList( + i.nextItem(), + i.nextItem(), + i.nextItem(), + i.nextItem(), + i.nextItem(), + i.nextItem())); outputs.removeIf(Objects::isNull); int[] chances = i.nextIntArr(); @@ -122,13 +129,19 @@ protected void applySingleRecipe(ArgIterator i) { ItemStack input1 = i.nextItem(); int cellNumber = i.nextInt(); ItemStack input2 = cellNumber > 0 ? ItemList.Cell_Empty.get(cellNumber) : null; - List inputs =new ArrayList<>(Arrays.asList(input1, input2)); + List inputs = new ArrayList<>(Arrays.asList(input1, input2)); inputs.removeIf(Objects::isNull); FluidStack fluidInput = i.nextFluid(); FluidStack fluidOutput = i.nextFluid(); - List outputs =new ArrayList<>(Arrays - .asList(i.nextItem(), i.nextItem(), i.nextItem(), i.nextItem(), i.nextItem(), i.nextItem())); + List outputs = new ArrayList<>( + Arrays.asList( + i.nextItem(), + i.nextItem(), + i.nextItem(), + i.nextItem(), + i.nextItem(), + i.nextItem())); outputs.removeIf(Objects::isNull); int[] chances = i.nextIntArr(); diff --git a/src/main/java/gttweaker/mods/gregtech/machines/ChemicalBath.java b/src/main/java/gttweaker/mods/gregtech/machines/ChemicalBath.java index bd4b147..08b35ab 100644 --- a/src/main/java/gttweaker/mods/gregtech/machines/ChemicalBath.java +++ b/src/main/java/gttweaker/mods/gregtech/machines/ChemicalBath.java @@ -62,7 +62,8 @@ public static void addRecipe(IItemStack[] output, IIngredient input, ILiquidStac protected void applySingleRecipe(ArgIterator i) { ItemStack input = i.nextItem(); FluidStack fluidInput = i.nextFluid(); - List outputs =new ArrayList<>(Arrays.asList(i.nextItem(), i.nextItem(), i.nextItem())); + List outputs = new ArrayList<>( + Arrays.asList(i.nextItem(), i.nextItem(), i.nextItem())); outputs.removeIf(Objects::isNull); int[] chances = i.nextIntArr(); int duration = i.nextInt(); diff --git a/src/main/java/gttweaker/mods/gregtech/machines/Electrolyzer.java b/src/main/java/gttweaker/mods/gregtech/machines/Electrolyzer.java index d23ccd7..429da07 100644 --- a/src/main/java/gttweaker/mods/gregtech/machines/Electrolyzer.java +++ b/src/main/java/gttweaker/mods/gregtech/machines/Electrolyzer.java @@ -72,8 +72,14 @@ protected void applySingleRecipe(ArgIterator i) { ItemStack[] inputs = new ItemStack[] { i.nextItem(), i.nextItem() }; FluidStack fluidInput = i.nextFluid(); FluidStack fluidOutput = i.nextFluid(); - List outputs =new ArrayList<>(Arrays - .asList(i.nextItem(), i.nextItem(), i.nextItem(), i.nextItem(), i.nextItem(), i.nextItem())); + List outputs = new ArrayList<>( + Arrays.asList( + i.nextItem(), + i.nextItem(), + i.nextItem(), + i.nextItem(), + i.nextItem(), + i.nextItem())); outputs.removeIf(Objects::isNull); RA.stdBuilder() @@ -114,8 +120,14 @@ protected void applySingleRecipe(ArgIterator i) { ItemStack[] inputs = new ItemStack[] { i.nextItem(), i.nextItem() }; FluidStack fluidInput = i.nextFluid(); FluidStack fluidOutput = i.nextFluid(); - List outputs =new ArrayList<>(Arrays - .asList(i.nextItem(), i.nextItem(), i.nextItem(), i.nextItem(), i.nextItem(), i.nextItem())); + List outputs = new ArrayList<>( + Arrays.asList( + i.nextItem(), + i.nextItem(), + i.nextItem(), + i.nextItem(), + i.nextItem(), + i.nextItem())); outputs.removeIf(Objects::isNull); RA.stdBuilder() diff --git a/src/main/java/gttweaker/mods/gregtech/machines/ImplosionCompressor.java b/src/main/java/gttweaker/mods/gregtech/machines/ImplosionCompressor.java index 923fd1e..2842089 100644 --- a/src/main/java/gttweaker/mods/gregtech/machines/ImplosionCompressor.java +++ b/src/main/java/gttweaker/mods/gregtech/machines/ImplosionCompressor.java @@ -69,7 +69,7 @@ protected void applySingleRecipe(ArgIterator i) { int additiveAmount = i.nextInt(); ItemStack output1 = i.nextItem(); ItemStack output2 = i.nextItem(); - List outputs =new ArrayList<>(Arrays.asList(output1, output2)); + List outputs = new ArrayList<>(Arrays.asList(output1, output2)); outputs.removeIf(Objects::isNull); RA.stdBuilder() .itemInputs(input) diff --git a/src/main/java/gttweaker/mods/gregtech/machines/Lathe.java b/src/main/java/gttweaker/mods/gregtech/machines/Lathe.java index 86dfe66..29dc8f5 100644 --- a/src/main/java/gttweaker/mods/gregtech/machines/Lathe.java +++ b/src/main/java/gttweaker/mods/gregtech/machines/Lathe.java @@ -66,7 +66,7 @@ public static void addRecipe(IItemStack[] outputs, IIngredient input, int durati @Override protected void applySingleRecipe(ArgIterator i) { ItemStack input = i.nextItem(); - List outputs =new ArrayList<>(Arrays.asList(i.nextItem(), i.nextItem())); + List outputs = new ArrayList<>(Arrays.asList(i.nextItem(), i.nextItem())); outputs.removeIf(Objects::isNull); RA.stdBuilder() diff --git a/src/main/java/gttweaker/mods/gregtech/machines/Mixer.java b/src/main/java/gttweaker/mods/gregtech/machines/Mixer.java index 2e13641..5cdba72 100644 --- a/src/main/java/gttweaker/mods/gregtech/machines/Mixer.java +++ b/src/main/java/gttweaker/mods/gregtech/machines/Mixer.java @@ -60,7 +60,8 @@ public static void addRecipe(IItemStack output, ILiquidStack fluidOutput, IIngre @Override protected void applySingleRecipe(ArgIterator i) { - List inputs =new ArrayList<>(Arrays.asList(i.nextItem(), i.nextItem(), i.nextItem(), i.nextItem())); + List inputs = new ArrayList<>( + Arrays.asList(i.nextItem(), i.nextItem(), i.nextItem(), i.nextItem())); inputs.removeIf(Objects::isNull); RA.stdBuilder() @@ -94,7 +95,8 @@ public static void addRecipe(IItemStack output, IIngredient[] input, int duratio @Override protected void applySingleRecipe(ArgIterator i) { - List inputs =new ArrayList<>(Arrays.asList(i.nextItem(), i.nextItem(), i.nextItem(), i.nextItem())); + List inputs = new ArrayList<>( + Arrays.asList(i.nextItem(), i.nextItem(), i.nextItem(), i.nextItem())); inputs.removeIf(Objects::isNull); RA.stdBuilder() diff --git a/src/main/java/gttweaker/mods/gregtech/machines/Separator.java b/src/main/java/gttweaker/mods/gregtech/machines/Separator.java index f403214..65b93f9 100644 --- a/src/main/java/gttweaker/mods/gregtech/machines/Separator.java +++ b/src/main/java/gttweaker/mods/gregtech/machines/Separator.java @@ -59,7 +59,8 @@ public static void addRecipe(IItemStack[] output, IIngredient input, int[] outCh @Override protected void applySingleRecipe(ArgIterator i) { ItemStack input = i.nextItem(); - List outputs =new ArrayList<>(Arrays.asList(i.nextItem(), i.nextItem(), i.nextItem())); + List outputs = new ArrayList<>( + Arrays.asList(i.nextItem(), i.nextItem(), i.nextItem())); outputs.removeIf(Objects::isNull); RA.stdBuilder()