diff --git a/src/main/java/techreborn/api/recipe/machines/AlloySmelterRecipe.java b/src/main/java/techreborn/api/recipe/machines/AlloySmelterRecipe.java index 5e0f61930..4e4f4dee7 100644 --- a/src/main/java/techreborn/api/recipe/machines/AlloySmelterRecipe.java +++ b/src/main/java/techreborn/api/recipe/machines/AlloySmelterRecipe.java @@ -30,7 +30,7 @@ import techreborn.api.recipe.BaseRecipe; public class AlloySmelterRecipe extends BaseRecipe { - public AlloySmelterRecipe(ItemStack input1, ItemStack input2, ItemStack output1, int tickTime, int euPerTick) { + public AlloySmelterRecipe(Object input1, Object input2, ItemStack output1, int tickTime, int euPerTick) { super(Reference.ALLOY_SMELTER_RECIPE, tickTime, euPerTick); if (input1 != null) addInput(input1); diff --git a/src/main/java/techreborn/api/recipe/machines/AssemblingMachineRecipe.java b/src/main/java/techreborn/api/recipe/machines/AssemblingMachineRecipe.java index d51940d83..58ff593f2 100644 --- a/src/main/java/techreborn/api/recipe/machines/AssemblingMachineRecipe.java +++ b/src/main/java/techreborn/api/recipe/machines/AssemblingMachineRecipe.java @@ -30,7 +30,7 @@ import techreborn.api.recipe.BaseRecipe; public class AssemblingMachineRecipe extends BaseRecipe { - public AssemblingMachineRecipe(ItemStack input1, ItemStack input2, ItemStack output1, int tickTime, int euPerTick) { + public AssemblingMachineRecipe(Object input1, Object input2, ItemStack output1, int tickTime, int euPerTick) { super(Reference.ASSEMBLING_MACHINE_RECIPE, tickTime, euPerTick); if (input1 != null) addInput(input1); diff --git a/src/main/java/techreborn/api/recipe/machines/BlastFurnaceRecipe.java b/src/main/java/techreborn/api/recipe/machines/BlastFurnaceRecipe.java index cdd7fcc7e..165296ed5 100644 --- a/src/main/java/techreborn/api/recipe/machines/BlastFurnaceRecipe.java +++ b/src/main/java/techreborn/api/recipe/machines/BlastFurnaceRecipe.java @@ -32,7 +32,7 @@ public class BlastFurnaceRecipe extends BaseRecipe { public int neededHeat; - public BlastFurnaceRecipe(ItemStack input1, ItemStack input2, ItemStack output1, ItemStack output2, int tickTime, + public BlastFurnaceRecipe(Object input1, Object input2, ItemStack output1, ItemStack output2, int tickTime, int euPerTick, int neededHeat) { super(Reference.BLAST_FURNACE_RECIPE, tickTime, euPerTick); if (input1 != null) diff --git a/src/main/java/techreborn/api/recipe/machines/CentrifugeRecipe.java b/src/main/java/techreborn/api/recipe/machines/CentrifugeRecipe.java index 1a4e7a3cf..e9331e30d 100644 --- a/src/main/java/techreborn/api/recipe/machines/CentrifugeRecipe.java +++ b/src/main/java/techreborn/api/recipe/machines/CentrifugeRecipe.java @@ -32,7 +32,7 @@ public class CentrifugeRecipe extends BaseRecipe { boolean useOreDic = false; - public CentrifugeRecipe(Object input1, ItemStack input2, ItemStack output1, ItemStack output2, ItemStack output3, + public CentrifugeRecipe(Object input1, Object input2, ItemStack output1, ItemStack output2, ItemStack output3, ItemStack output4, int tickTime, int euPerTick) { super(Reference.CENTRIFUGE_RECIPE, tickTime, euPerTick); if (input1 != null) @@ -49,7 +49,7 @@ public class CentrifugeRecipe extends BaseRecipe { addOutput(output4); } - public CentrifugeRecipe(Object input1, ItemStack input2, ItemStack output1, ItemStack output2, ItemStack output3, + public CentrifugeRecipe(Object input1, Object input2, ItemStack output1, ItemStack output2, ItemStack output3, ItemStack output4, int tickTime, int euPerTick, boolean useOreDic) { this(input1, input2, output1, output2, output3, output4, tickTime, euPerTick); this.useOreDic = useOreDic; diff --git a/src/main/java/techreborn/api/recipe/machines/ChemicalReactorRecipe.java b/src/main/java/techreborn/api/recipe/machines/ChemicalReactorRecipe.java index e010239b7..8250698a9 100644 --- a/src/main/java/techreborn/api/recipe/machines/ChemicalReactorRecipe.java +++ b/src/main/java/techreborn/api/recipe/machines/ChemicalReactorRecipe.java @@ -30,7 +30,7 @@ import techreborn.api.recipe.BaseRecipe; public class ChemicalReactorRecipe extends BaseRecipe { - public ChemicalReactorRecipe(ItemStack input1, ItemStack input2, ItemStack output1, int tickTime, int euPerTick) { + public ChemicalReactorRecipe(Object input1, Object input2, ItemStack output1, int tickTime, int euPerTick) { super(Reference.CHEMICAL_REACTOR_RECIPE, tickTime, euPerTick); if (input1 != null) addInput(input1); diff --git a/src/main/java/techreborn/api/recipe/machines/CompressorRecipe.java b/src/main/java/techreborn/api/recipe/machines/CompressorRecipe.java index 1ddff7dbb..5a094135a 100644 --- a/src/main/java/techreborn/api/recipe/machines/CompressorRecipe.java +++ b/src/main/java/techreborn/api/recipe/machines/CompressorRecipe.java @@ -30,7 +30,7 @@ import techreborn.api.recipe.BaseRecipe; public class CompressorRecipe extends BaseRecipe { - public CompressorRecipe(ItemStack input1, ItemStack output1, int tickTime, int euPerTick) { + public CompressorRecipe(Object input1, ItemStack output1, int tickTime, int euPerTick) { super(Reference.COMPRESSOR_RECIPE, tickTime, euPerTick); if (input1 != null) addInput(input1); diff --git a/src/main/java/techreborn/api/recipe/machines/DistillationTowerRecipe.java b/src/main/java/techreborn/api/recipe/machines/DistillationTowerRecipe.java index 52c5355d2..5a6d942ba 100644 --- a/src/main/java/techreborn/api/recipe/machines/DistillationTowerRecipe.java +++ b/src/main/java/techreborn/api/recipe/machines/DistillationTowerRecipe.java @@ -46,7 +46,7 @@ public class DistillationTowerRecipe extends BaseRecipe { * @param tickTime Number of ticks for recipe to complete * @param euPerTick Amount of EU consumed per tick */ - public DistillationTowerRecipe(ItemStack inputCells, ItemStack input2, ItemStack output1, ItemStack output2, + public DistillationTowerRecipe(Object inputCells, Object input2, ItemStack output1, ItemStack output2, ItemStack output3, ItemStack output4, int tickTime, int euPerTick) { super(Reference.DISTILLATION_TOWER_RECIPE, tickTime, euPerTick); if (inputCells != null) @@ -63,7 +63,7 @@ public class DistillationTowerRecipe extends BaseRecipe { addOutput(output4); } - public DistillationTowerRecipe(ItemStack inputCells, ItemStack input2, ItemStack output1, ItemStack output2, + public DistillationTowerRecipe(Object inputCells, Object input2, ItemStack output1, ItemStack output2, ItemStack output3, ItemStack output4, int tickTime, int euPerTick, boolean oreDict) { this(inputCells, input2, output1, output2, output3, output4, tickTime, euPerTick); this.useOreDictionary = oreDict; diff --git a/src/main/java/techreborn/api/recipe/machines/GrinderRecipe.java b/src/main/java/techreborn/api/recipe/machines/GrinderRecipe.java index 44eb76f03..73998d626 100644 --- a/src/main/java/techreborn/api/recipe/machines/GrinderRecipe.java +++ b/src/main/java/techreborn/api/recipe/machines/GrinderRecipe.java @@ -32,7 +32,7 @@ public class GrinderRecipe extends BaseRecipe { public boolean useOreDict = true; - public GrinderRecipe(ItemStack input1, ItemStack output1, int tickTime, int euPerTick) { + public GrinderRecipe(Object input1, ItemStack output1, int tickTime, int euPerTick) { super(Reference.GRINDER_RECIPE, tickTime, euPerTick / 10); //Done to buff energy usage to be more in line with ic2 if (input1 != null) addInput(input1); @@ -40,7 +40,7 @@ public class GrinderRecipe extends BaseRecipe { addOutput(output1); } - public GrinderRecipe(ItemStack input1, ItemStack output1, int tickTime, int euPerTick, boolean useOreDict) { + public GrinderRecipe(Object input1, ItemStack output1, int tickTime, int euPerTick, boolean useOreDict) { super(Reference.GRINDER_RECIPE, tickTime, euPerTick / 10); //Done to buff energy usage to be more in line with ic2 this.useOreDict = useOreDict; if (input1 != null) diff --git a/src/main/java/techreborn/api/recipe/machines/ImplosionCompressorRecipe.java b/src/main/java/techreborn/api/recipe/machines/ImplosionCompressorRecipe.java index a52da0e8b..6f3fc29ca 100644 --- a/src/main/java/techreborn/api/recipe/machines/ImplosionCompressorRecipe.java +++ b/src/main/java/techreborn/api/recipe/machines/ImplosionCompressorRecipe.java @@ -30,7 +30,7 @@ import techreborn.api.recipe.BaseRecipe; public class ImplosionCompressorRecipe extends BaseRecipe { - public ImplosionCompressorRecipe(ItemStack input1, ItemStack input2, ItemStack output1, ItemStack output2, + public ImplosionCompressorRecipe(Object input1, Object input2, ItemStack output1, ItemStack output2, int tickTime, int euPerTick) { super(Reference.IMPLOSION_COMPRESSOR_RECIPE, tickTime, euPerTick); if (input1 != null) diff --git a/src/main/java/techreborn/api/recipe/machines/IndustrialElectrolyzerRecipe.java b/src/main/java/techreborn/api/recipe/machines/IndustrialElectrolyzerRecipe.java index dca4200ee..ca1e25285 100644 --- a/src/main/java/techreborn/api/recipe/machines/IndustrialElectrolyzerRecipe.java +++ b/src/main/java/techreborn/api/recipe/machines/IndustrialElectrolyzerRecipe.java @@ -32,7 +32,7 @@ public class IndustrialElectrolyzerRecipe extends BaseRecipe { private boolean useOreDictionary = true; - public IndustrialElectrolyzerRecipe(ItemStack inputCells, ItemStack input2, ItemStack output1, ItemStack output2, + public IndustrialElectrolyzerRecipe(Object inputCells, Object input2, ItemStack output1, ItemStack output2, ItemStack output3, ItemStack output4, int tickTime, int euPerTick) { super(Reference.INDUSTRIAL_ELECTROLYZER_RECIPE, tickTime, euPerTick); if (inputCells != null) diff --git a/src/main/java/techreborn/api/recipe/machines/IndustrialGrinderRecipe.java b/src/main/java/techreborn/api/recipe/machines/IndustrialGrinderRecipe.java index 8f4020b5d..8c3864d59 100644 --- a/src/main/java/techreborn/api/recipe/machines/IndustrialGrinderRecipe.java +++ b/src/main/java/techreborn/api/recipe/machines/IndustrialGrinderRecipe.java @@ -34,7 +34,7 @@ public class IndustrialGrinderRecipe extends BaseRecipe { public FluidStack fluidStack; boolean useOreDic = true; - public IndustrialGrinderRecipe(ItemStack input1, FluidStack fluidStack, ItemStack output1, + public IndustrialGrinderRecipe(Object input1, FluidStack fluidStack, ItemStack output1, ItemStack output2, ItemStack output3, ItemStack output4, int tickTime, int euPerTick) { super(Reference.INDUSTRIAL_GRINDER_RECIPE, tickTime, euPerTick); if (input1 != null) @@ -50,7 +50,7 @@ public class IndustrialGrinderRecipe extends BaseRecipe { this.fluidStack = fluidStack; } - public IndustrialGrinderRecipe(ItemStack input1, FluidStack fluidStack, ItemStack output1, + public IndustrialGrinderRecipe(Object input1, FluidStack fluidStack, ItemStack output1, ItemStack output2, ItemStack output3, ItemStack output4, int tickTime, int euPerTick, boolean useOreDict) { this(input1, fluidStack, output1, output2, output3, output4, tickTime, euPerTick); this.useOreDic = useOreDict; diff --git a/src/main/java/techreborn/api/recipe/machines/IndustrialSawmillRecipe.java b/src/main/java/techreborn/api/recipe/machines/IndustrialSawmillRecipe.java index af2059ea7..ef65a6866 100644 --- a/src/main/java/techreborn/api/recipe/machines/IndustrialSawmillRecipe.java +++ b/src/main/java/techreborn/api/recipe/machines/IndustrialSawmillRecipe.java @@ -48,7 +48,7 @@ public class IndustrialSawmillRecipe extends BaseRecipe { this.fluidStack = fluidStack; } - public IndustrialSawmillRecipe(ItemStack input1, FluidStack fluidStack, ItemStack output1, + public IndustrialSawmillRecipe(Object input1, FluidStack fluidStack, ItemStack output1, ItemStack output2, ItemStack output3, int tickTime, int euPerTick, boolean canUseOreDict) { super(Reference.INDUSTRIAL_SAWMILL_RECIPE, tickTime, euPerTick); if (input1 != null) diff --git a/src/main/java/techreborn/api/recipe/machines/VacuumFreezerRecipe.java b/src/main/java/techreborn/api/recipe/machines/VacuumFreezerRecipe.java index e4738af93..d092bc689 100644 --- a/src/main/java/techreborn/api/recipe/machines/VacuumFreezerRecipe.java +++ b/src/main/java/techreborn/api/recipe/machines/VacuumFreezerRecipe.java @@ -30,7 +30,7 @@ import techreborn.api.recipe.BaseRecipe; public class VacuumFreezerRecipe extends BaseRecipe { - public VacuumFreezerRecipe(ItemStack input, ItemStack output, int tickTime, int euPerTick) { + public VacuumFreezerRecipe(Object input, ItemStack output, int tickTime, int euPerTick) { super(Reference.VACUUM_FREEZER_RECIPE, tickTime, euPerTick); if (input != null) addInput(input); diff --git a/src/main/java/techreborn/compat/crafttweaker/CTAlloySmelter.java b/src/main/java/techreborn/compat/crafttweaker/CTAlloySmelter.java index 4e52c3a78..8fc2fa82f 100644 --- a/src/main/java/techreborn/compat/crafttweaker/CTAlloySmelter.java +++ b/src/main/java/techreborn/compat/crafttweaker/CTAlloySmelter.java @@ -42,8 +42,8 @@ public class CTAlloySmelter extends CTGeneric { @ZenMethod public static void addRecipe(IItemStack output, IIngredient input1, IIngredient input2, int ticktime, int euTick) { - ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input1); - ItemStack oInput2 = (ItemStack) CraftTweakerCompat.toObject(input2); + Object oInput1 = CraftTweakerCompat.toObject(input1); + Object oInput2 = CraftTweakerCompat.toObject(input2); AlloySmelterRecipe r = new AlloySmelterRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output), ticktime, euTick); diff --git a/src/main/java/techreborn/compat/crafttweaker/CTAssemblingMachine.java b/src/main/java/techreborn/compat/crafttweaker/CTAssemblingMachine.java index 0982981c0..11860333e 100644 --- a/src/main/java/techreborn/compat/crafttweaker/CTAssemblingMachine.java +++ b/src/main/java/techreborn/compat/crafttweaker/CTAssemblingMachine.java @@ -38,8 +38,8 @@ public class CTAssemblingMachine extends CTGeneric { @ZenMethod public static void addRecipe(IItemStack output, IIngredient input1, IIngredient input2, int ticktime, int euTick) { - ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input1); - ItemStack oInput2 = (ItemStack) CraftTweakerCompat.toObject(input2); + Object oInput1 = CraftTweakerCompat.toObject(input1); + Object oInput2 = CraftTweakerCompat.toObject(input2); AssemblingMachineRecipe r = new AssemblingMachineRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output), ticktime, euTick); diff --git a/src/main/java/techreborn/compat/crafttweaker/CTBlastFurnace.java b/src/main/java/techreborn/compat/crafttweaker/CTBlastFurnace.java index aeed29419..6dac3e2c6 100644 --- a/src/main/java/techreborn/compat/crafttweaker/CTBlastFurnace.java +++ b/src/main/java/techreborn/compat/crafttweaker/CTBlastFurnace.java @@ -38,8 +38,8 @@ public class CTBlastFurnace extends CTGeneric { @ZenMethod public static void addRecipe(IItemStack output1, IItemStack output2, IIngredient input1, IIngredient input2, int ticktime, int euTick, int neededHeat) { - ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input1); - ItemStack oInput2 = (ItemStack) CraftTweakerCompat.toObject(input2); + Object oInput1 = CraftTweakerCompat.toObject(input1); + Object oInput2 = CraftTweakerCompat.toObject(input2); BlastFurnaceRecipe r = new BlastFurnaceRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output1), CraftTweakerCompat.toStack(output2), ticktime, euTick, neededHeat); diff --git a/src/main/java/techreborn/compat/crafttweaker/CTCentrifuge.java b/src/main/java/techreborn/compat/crafttweaker/CTCentrifuge.java index a9bd9d37e..7a2a45447 100644 --- a/src/main/java/techreborn/compat/crafttweaker/CTCentrifuge.java +++ b/src/main/java/techreborn/compat/crafttweaker/CTCentrifuge.java @@ -38,8 +38,8 @@ public class CTCentrifuge extends CTGeneric { @ZenMethod public static void addRecipe(IItemStack output1, IItemStack output2, IItemStack output3, IItemStack output4, IIngredient input1, IIngredient input2, int ticktime, int euTick) { - ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input1); - ItemStack oInput2 = (ItemStack) CraftTweakerCompat.toObject(input2); + Object oInput1 = CraftTweakerCompat.toObject(input1); + Object oInput2 = CraftTweakerCompat.toObject(input2); CentrifugeRecipe r = new CentrifugeRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output1), CraftTweakerCompat.toStack(output2), CraftTweakerCompat.toStack(output3), CraftTweakerCompat.toStack(output4), ticktime, euTick); diff --git a/src/main/java/techreborn/compat/crafttweaker/CTChemicalReactor.java b/src/main/java/techreborn/compat/crafttweaker/CTChemicalReactor.java index 983bafd56..3caf0cd53 100644 --- a/src/main/java/techreborn/compat/crafttweaker/CTChemicalReactor.java +++ b/src/main/java/techreborn/compat/crafttweaker/CTChemicalReactor.java @@ -38,8 +38,8 @@ public class CTChemicalReactor extends CTGeneric { @ZenMethod public static void addRecipe(IItemStack output1, IIngredient input1, IIngredient input2, int ticktime, int euTick) { - ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input1); - ItemStack oInput2 = (ItemStack) CraftTweakerCompat.toObject(input2); + Object oInput1 = CraftTweakerCompat.toObject(input1); + Object oInput2 = CraftTweakerCompat.toObject(input2); ChemicalReactorRecipe r = new ChemicalReactorRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output1), ticktime, euTick); diff --git a/src/main/java/techreborn/compat/crafttweaker/CTCompressor.java b/src/main/java/techreborn/compat/crafttweaker/CTCompressor.java index 42d1e29e0..d70d427cf 100644 --- a/src/main/java/techreborn/compat/crafttweaker/CTCompressor.java +++ b/src/main/java/techreborn/compat/crafttweaker/CTCompressor.java @@ -42,7 +42,7 @@ public class CTCompressor extends CTGeneric { @ZenMethod public static void addRecipe(IItemStack output1, IIngredient input1, int ticktime, int euTick) { - ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input1); + Object oInput1 = CraftTweakerCompat.toObject(input1); CompressorRecipe r = new CompressorRecipe(oInput1, CraftTweakerCompat.toStack(output1), ticktime, euTick); addRecipe(r); } diff --git a/src/main/java/techreborn/compat/crafttweaker/CTDistillationTower.java b/src/main/java/techreborn/compat/crafttweaker/CTDistillationTower.java index b5ecdefaa..d5351f76e 100644 --- a/src/main/java/techreborn/compat/crafttweaker/CTDistillationTower.java +++ b/src/main/java/techreborn/compat/crafttweaker/CTDistillationTower.java @@ -42,8 +42,8 @@ public class CTDistillationTower extends CTGeneric { @ZenMethod public static void addRecipe(IItemStack output1, IItemStack output2, IItemStack output3, IItemStack output4, IIngredient input1, IIngredient input2, int ticktime, int euTick) { - ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input1); - ItemStack oInput2 = (ItemStack) CraftTweakerCompat.toObject(input2); + Object oInput1 = CraftTweakerCompat.toObject(input1); + Object oInput2 = CraftTweakerCompat.toObject(input2); DistillationTowerRecipe r = new DistillationTowerRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output1), CraftTweakerCompat.toStack(output2), CraftTweakerCompat.toStack(output3), CraftTweakerCompat.toStack(output4), ticktime, euTick); diff --git a/src/main/java/techreborn/compat/crafttweaker/CTGrinder.java b/src/main/java/techreborn/compat/crafttweaker/CTGrinder.java index acc5b2bf7..a071758c1 100644 --- a/src/main/java/techreborn/compat/crafttweaker/CTGrinder.java +++ b/src/main/java/techreborn/compat/crafttweaker/CTGrinder.java @@ -42,7 +42,7 @@ public class CTGrinder extends CTGeneric { @ZenMethod public static void addRecipe(IItemStack output, IIngredient input1, int ticktime, int euTick) { - ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input1); + Object oInput1 = CraftTweakerCompat.toObject(input1); GrinderRecipe r = new GrinderRecipe(oInput1, CraftTweakerCompat.toStack(output), ticktime, euTick); diff --git a/src/main/java/techreborn/compat/crafttweaker/CTImplosionCompressor.java b/src/main/java/techreborn/compat/crafttweaker/CTImplosionCompressor.java index 3f64928da..b67d0abf7 100644 --- a/src/main/java/techreborn/compat/crafttweaker/CTImplosionCompressor.java +++ b/src/main/java/techreborn/compat/crafttweaker/CTImplosionCompressor.java @@ -38,8 +38,8 @@ public class CTImplosionCompressor extends CTGeneric { @ZenMethod public static void addRecipe(IItemStack output1, IItemStack output2, IIngredient input1, IIngredient input2, int ticktime, int euTick) { - ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input1); - ItemStack oInput2 = (ItemStack) CraftTweakerCompat.toObject(input2); + Object oInput1 = CraftTweakerCompat.toObject(input1); + Object oInput2 = CraftTweakerCompat.toObject(input2); ImplosionCompressorRecipe r = new ImplosionCompressorRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output1), CraftTweakerCompat.toStack(output2), ticktime, euTick); diff --git a/src/main/java/techreborn/compat/crafttweaker/CTIndustrialElectrolyzer.java b/src/main/java/techreborn/compat/crafttweaker/CTIndustrialElectrolyzer.java index 124b2a707..a19b485e1 100644 --- a/src/main/java/techreborn/compat/crafttweaker/CTIndustrialElectrolyzer.java +++ b/src/main/java/techreborn/compat/crafttweaker/CTIndustrialElectrolyzer.java @@ -38,8 +38,8 @@ public class CTIndustrialElectrolyzer extends CTGeneric { @ZenMethod public static void addRecipe(IItemStack output1, IItemStack output2, IItemStack output3, IItemStack output4, IIngredient cells, IIngredient input2, int ticktime, int euTick) { - ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(cells); - ItemStack oInput2 = (ItemStack) CraftTweakerCompat.toObject(input2); + Object oInput1 = CraftTweakerCompat.toObject(cells); + Object oInput2 = CraftTweakerCompat.toObject(input2); IndustrialElectrolyzerRecipe r = new IndustrialElectrolyzerRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output1), CraftTweakerCompat.toStack(output2), CraftTweakerCompat.toStack(output3), CraftTweakerCompat.toStack(output4), ticktime, euTick); diff --git a/src/main/java/techreborn/compat/crafttweaker/CTIndustrialGrinder.java b/src/main/java/techreborn/compat/crafttweaker/CTIndustrialGrinder.java index 697945900..cf524a488 100644 --- a/src/main/java/techreborn/compat/crafttweaker/CTIndustrialGrinder.java +++ b/src/main/java/techreborn/compat/crafttweaker/CTIndustrialGrinder.java @@ -71,7 +71,7 @@ public class CTIndustrialGrinder extends CTGeneric { */ @ZenMethod public static void addRecipe(IItemStack output1, IItemStack output2, IItemStack output3, IItemStack output4, IIngredient input1, IIngredient input2, ILiquidStack fluid, int ticktime, int euTick) { - ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input1); + Object oInput1 = CraftTweakerCompat.toObject(input1); // There is only one input slot in Industrial Grinder //ItemStack oInput2 = (ItemStack) CraftTweakerCompat.toObject(input2); diff --git a/src/main/java/techreborn/compat/crafttweaker/CTIndustrialSawmill.java b/src/main/java/techreborn/compat/crafttweaker/CTIndustrialSawmill.java index b67b21a96..0e88c2f0d 100644 --- a/src/main/java/techreborn/compat/crafttweaker/CTIndustrialSawmill.java +++ b/src/main/java/techreborn/compat/crafttweaker/CTIndustrialSawmill.java @@ -55,7 +55,7 @@ public class CTIndustrialSawmill extends CTGeneric { @ZenMethod public static void addRecipe(IItemStack output1, IItemStack output2, IItemStack output3, IIngredient input1, ILiquidStack fluid, int ticktime, int euTick, boolean useOreDic) { - ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input1); + Object oInput1 = CraftTweakerCompat.toObject(input1); FluidStack fluidStack = null; if (fluid != null) { diff --git a/src/main/java/techreborn/compat/crafttweaker/CTVacuumFreezer.java b/src/main/java/techreborn/compat/crafttweaker/CTVacuumFreezer.java index d883234c6..2ddb43280 100644 --- a/src/main/java/techreborn/compat/crafttweaker/CTVacuumFreezer.java +++ b/src/main/java/techreborn/compat/crafttweaker/CTVacuumFreezer.java @@ -38,7 +38,7 @@ public class CTVacuumFreezer extends CTGeneric { @ZenMethod public static void addRecipe(IItemStack output, IIngredient input, int ticktime, int euTick) { - ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input); + Object oInput1 = CraftTweakerCompat.toObject(input); VacuumFreezerRecipe r = new VacuumFreezerRecipe(oInput1, CraftTweakerCompat.toStack(output), ticktime, euTick); addRecipe(r);