aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/GT_RecipeAdder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech/common/GT_RecipeAdder.java')
-rw-r--r--src/main/java/gregtech/common/GT_RecipeAdder.java2638
1 files changed, 1285 insertions, 1353 deletions
diff --git a/src/main/java/gregtech/common/GT_RecipeAdder.java b/src/main/java/gregtech/common/GT_RecipeAdder.java
index 89d56baaef..65ff60e9c3 100644
--- a/src/main/java/gregtech/common/GT_RecipeAdder.java
+++ b/src/main/java/gregtech/common/GT_RecipeAdder.java
@@ -41,36 +41,36 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
@Deprecated
public boolean addFusionReactorRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration,
- int aEUt, int aStartEU) {
+ int aEUt, int aStartEU) {
return false;
}
@Override // Really?
public boolean addFusionReactorRecipe(FluidStack aInput1, FluidStack aInput2, FluidStack aOutput1, int aDuration,
- int aEUt, int aStartEU) {
+ int aEUt, int aStartEU) {
if (aInput1 == null || aInput2 == null || aOutput1 == null || aDuration < 1 || aEUt < 1 || aStartEU < 1) {
return false;
}
if ((aDuration = GregTech_API.sRecipeFile.get(
- "fusion",
- aOutput1.getFluid()
- .getName(),
- aDuration)) <= 0) {
+ "fusion",
+ aOutput1.getFluid()
+ .getName(),
+ aDuration)) <= 0) {
return false;
}
GT_Recipe.GT_Recipe_Map.sFusionRecipes.addRecipe(
- null,
- new FluidStack[] { aInput1, aInput2 },
- new FluidStack[] { aOutput1 },
- aDuration,
- aEUt,
- aStartEU);
+ null,
+ new FluidStack[] { aInput1, aInput2 },
+ new FluidStack[] { aOutput1 },
+ aDuration,
+ aEUt,
+ aStartEU);
return true;
}
@Override
public boolean addFusionReactorRecipe(FluidStack[] FluidInputArray, FluidStack[] FluidOutputArray,
- int aFusionDurationInTicks, int aFusionEnergyPerTick, int aEnergyNeededForStartingFusion) {
+ int aFusionDurationInTicks, int aFusionEnergyPerTick, int aEnergyNeededForStartingFusion) {
if (FluidInputArray.length == 0) return false;
if (FluidOutputArray.length == 0) return false;
@@ -79,88 +79,88 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
// This is so NEI can function properly and understand the recipe. Otherwise, it gets cut off.
if ((FluidInputArray.length > 2) || (FluidOutputArray.length > 2)) {
GT_Recipe.GT_Recipe_Map.sComplexFusionRecipes.addRecipe(
- null,
- FluidInputArray,
- FluidOutputArray,
- aFusionDurationInTicks,
- aFusionEnergyPerTick,
- aEnergyNeededForStartingFusion);
- return true;
- }
-
- GT_Recipe.GT_Recipe_Map.sFusionRecipes.addRecipe(
null,
FluidInputArray,
FluidOutputArray,
aFusionDurationInTicks,
aFusionEnergyPerTick,
aEnergyNeededForStartingFusion);
+ return true;
+ }
+
+ GT_Recipe.GT_Recipe_Map.sFusionRecipes.addRecipe(
+ null,
+ FluidInputArray,
+ FluidOutputArray,
+ aFusionDurationInTicks,
+ aFusionEnergyPerTick,
+ aEnergyNeededForStartingFusion);
return true;
}
@Override
public boolean addCentrifugeRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2,
- ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration) {
+ ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration) {
return addCentrifugeRecipe(
- aInput1,
- aInput2 < 0 ? null : aInput2 > 0 ? ItemList.Cell_Empty.get(aInput2) : null,
- null,
- null,
- aOutput1,
- aOutput2,
- aOutput3,
- aOutput4,
- aOutput5,
- aOutput6,
- null,
- aDuration,
- 5);
+ aInput1,
+ aInput2 < 0 ? null : aInput2 > 0 ? ItemList.Cell_Empty.get(aInput2) : null,
+ null,
+ null,
+ aOutput1,
+ aOutput2,
+ aOutput3,
+ aOutput4,
+ aOutput5,
+ aOutput6,
+ null,
+ aDuration,
+ 5);
}
@Override
public boolean addCentrifugeRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2,
- ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration, int aEUt) {
+ ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration, int aEUt) {
return addCentrifugeRecipe(
- aInput1,
- aInput2 < 0 ? null : aInput2 > 0 ? ItemList.Cell_Empty.get(aInput2) : null,
- null,
- null,
- aOutput1,
- aOutput2,
- aOutput3,
- aOutput4,
- aOutput5,
- aOutput6,
- null,
- aDuration,
- aEUt);
+ aInput1,
+ aInput2 < 0 ? null : aInput2 > 0 ? ItemList.Cell_Empty.get(aInput2) : null,
+ null,
+ null,
+ aOutput1,
+ aOutput2,
+ aOutput3,
+ aOutput4,
+ aOutput5,
+ aOutput6,
+ null,
+ aDuration,
+ aEUt);
}
@Override
public boolean addCentrifugeRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput,
- FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4,
- ItemStack aOutput5, ItemStack aOutput6, int[] aChances, int aDuration, int aEUt) {
+ FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4,
+ ItemStack aOutput5, ItemStack aOutput6, int[] aChances, int aDuration, int aEUt) {
return addCentrifugeRecipe(
- aInput1,
- aInput2,
- aFluidInput,
- aFluidOutput,
- aOutput1,
- aOutput2,
- aOutput3,
- aOutput4,
- aOutput5,
- aOutput6,
- aChances,
- aDuration,
- aEUt,
- false);
+ aInput1,
+ aInput2,
+ aFluidInput,
+ aFluidOutput,
+ aOutput1,
+ aOutput2,
+ aOutput3,
+ aOutput4,
+ aOutput5,
+ aOutput6,
+ aChances,
+ aDuration,
+ aEUt,
+ false);
}
@Override
public boolean addCentrifugeRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput,
- FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4,
- ItemStack aOutput5, ItemStack aOutput6, int[] aChances, int aDuration, int aEUt, boolean aCleanroom) {
+ FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4,
+ ItemStack aOutput5, ItemStack aOutput6, int[] aChances, int aDuration, int aEUt, boolean aCleanroom) {
if (((aInput1 == null) && (aFluidInput == null)) || ((aOutput1 == null) && (aFluidOutput == null))) {
return false;
}
@@ -168,26 +168,26 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
if ((aFluidInput != null) && ((aDuration = GregTech_API.sRecipeFile.get(
- "centrifuge",
- aFluidInput.getFluid()
- .getName(),
- aDuration)) <= 0)) {
+ "centrifuge",
+ aFluidInput.getFluid()
+ .getName(),
+ aDuration)) <= 0)) {
return false;
}
if (!GT_Mod.gregtechproxy.mEnableCleanroom) {
aCleanroom = false;
}
GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes.addRecipe(
- true,
- new ItemStack[] { aInput1, aInput2 },
- new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4, aOutput5, aOutput6, },
- null,
- aChances,
- new FluidStack[] { aFluidInput },
- new FluidStack[] { aFluidOutput },
- aDuration,
- aEUt,
- aCleanroom ? -100 : 0);
+ true,
+ new ItemStack[] { aInput1, aInput2 },
+ new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4, aOutput5, aOutput6, },
+ null,
+ aChances,
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
+ aDuration,
+ aEUt,
+ aCleanroom ? -100 : 0);
ItemStack[] itemInputs = { aInput1, aInput2 };
ItemStack[] itemOutputs = { aOutput1, aOutput2, aOutput3, aOutput4, aOutput5, aOutput6 };
FluidStack[] fluidInputs = { aFluidInput, null, null };
@@ -217,16 +217,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
}
GT_Recipe.GT_Recipe_Map.sMultiblockCentrifugeRecipes.addRecipe(
- false,
- itemInputs,
- itemOutputs,
- null,
- aChances,
- fluidInputs,
- fluidOutputs,
- aDuration,
- aEUt,
- aCleanroom ? -100 : 0);
+ false,
+ itemInputs,
+ itemOutputs,
+ null,
+ aChances,
+ fluidInputs,
+ fluidOutputs,
+ aDuration,
+ aEUt,
+ aCleanroom ? -100 : 0);
return true;
}
@@ -239,66 +239,66 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sCompressorRecipes.addRecipe(
- true,
- new ItemStack[] { aInput1 },
- new ItemStack[] { aOutput1 },
- null,
- null,
- null,
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput1 },
+ new ItemStack[] { aOutput1 },
+ null,
+ null,
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
public boolean addElectrolyzerRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2,
- ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration, int aEUt) {
+ ItemStack aOutput3, ItemStack aOutput4, ItemStack aOutput5, ItemStack aOutput6, int aDuration, int aEUt) {
return addElectrolyzerRecipe(
- aInput1,
- aInput2 < 0 ? null : aInput2 > 0 ? ItemList.Cell_Empty.get(aInput2) : null,
- null,
- null,
- aOutput1,
- aOutput2,
- aOutput3,
- aOutput4,
- aOutput5,
- aOutput6,
- null,
- aDuration,
- aEUt);
+ aInput1,
+ aInput2 < 0 ? null : aInput2 > 0 ? ItemList.Cell_Empty.get(aInput2) : null,
+ null,
+ null,
+ aOutput1,
+ aOutput2,
+ aOutput3,
+ aOutput4,
+ aOutput5,
+ aOutput6,
+ null,
+ aDuration,
+ aEUt);
}
@Override
public boolean addElectrolyzerRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput,
- FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4,
- ItemStack aOutput5, ItemStack aOutput6, int[] aChances, int aDuration, int aEUt) {
+ FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4,
+ ItemStack aOutput5, ItemStack aOutput6, int[] aChances, int aDuration, int aEUt) {
if (((aInput1 == null) && (aFluidInput == null)) || ((aOutput1 == null) && (aFluidOutput == null))) {
return false;
}
if ((aInput1 != null)
- && ((aDuration = GregTech_API.sRecipeFile.get("electrolyzer", aInput1, aDuration)) <= 0)) {
+ && ((aDuration = GregTech_API.sRecipeFile.get("electrolyzer", aInput1, aDuration)) <= 0)) {
return false;
}
if ((aFluidInput != null) && ((aDuration = GregTech_API.sRecipeFile.get(
- "electrolyzer",
- aFluidInput.getFluid()
- .getName(),
- aDuration)) <= 0)) {
+ "electrolyzer",
+ aFluidInput.getFluid()
+ .getName(),
+ aDuration)) <= 0)) {
return false;
}
GT_Recipe.GT_Recipe_Map.sElectrolyzerRecipes.addRecipe(
- true,
- new ItemStack[] { aInput1, aInput2 },
- new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4, aOutput5, aOutput6 },
- null,
- aChances,
- new FluidStack[] { aFluidInput },
- new FluidStack[] { aFluidOutput },
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput1, aInput2 },
+ new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4, aOutput5, aOutput6 },
+ null,
+ aChances,
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
+ aDuration,
+ aEUt,
+ 0);
ItemStack[] itemInputs = { aInput1, aInput2 };
ItemStack[] itemOutputs = { aOutput1, aOutput2, aOutput3, aOutput4, aOutput5, aOutput6 };
FluidStack[] fluidInputs = { aFluidInput, null, null };
@@ -310,7 +310,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
for (ItemStack item : itemInputs) {
if (item != null) {
if (GT_Utility.getFluidForFilledItem(item, true) != null || GT_Utility.isCellEmpty(item)
- || GT_Utility.isAnyIntegratedCircuit(item)) {
+ || GT_Utility.isAnyIntegratedCircuit(item)) {
fluidInputs[iNumber + 1] = GT_Utility.convertCellToFluid(item);
itemInputs[iNumber] = null;
}
@@ -328,17 +328,8 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
oNumber++;
}
- GT_Recipe.GT_Recipe_Map.sMultiblockElectrolyzerRecipes.addRecipe(
- false,
- itemInputs,
- itemOutputs,
- null,
- aChances,
- fluidInputs,
- fluidOutputs,
- aDuration,
- aEUt,
- 0);
+ GT_Recipe.GT_Recipe_Map.sMultiblockElectrolyzerRecipes
+ .addRecipe(false, itemInputs, itemOutputs, null, aChances, fluidInputs, fluidOutputs, aDuration, aEUt, 0);
return true;
}
@@ -354,62 +345,62 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput,
- FluidStack aFluidOutput, ItemStack aOutput, int aDuration) {
+ FluidStack aFluidOutput, ItemStack aOutput, int aDuration) {
return addChemicalRecipe(aInput1, aInput2, aFluidInput, aFluidOutput, aOutput, aDuration, 30);
}
@Override
public boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput,
- FluidStack aFluidOutput, ItemStack aOutput, ItemStack aOutput2, int aDuration) {
+ FluidStack aFluidOutput, ItemStack aOutput, ItemStack aOutput2, int aDuration) {
return addChemicalRecipe(aInput1, aInput2, aFluidInput, aFluidOutput, aOutput, aOutput2, aDuration, 30);
}
@Override
public boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput,
- FluidStack aFluidOutput, ItemStack aOutput, int aDuration, int aEUTick) {
+ FluidStack aFluidOutput, ItemStack aOutput, int aDuration, int aEUTick) {
return addChemicalRecipe(
- aInput1,
- aInput2,
- aFluidInput,
- aFluidOutput,
- aOutput,
- GT_Values.NI,
- aDuration,
- aEUTick);
+ aInput1,
+ aInput2,
+ aFluidInput,
+ aFluidOutput,
+ aOutput,
+ GT_Values.NI,
+ aDuration,
+ aEUTick);
}
@Override
public boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput,
- FluidStack aFluidOutput, ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick) {
+ FluidStack aFluidOutput, ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick) {
return addChemicalRecipe(
- aInput1,
- aInput2,
- aFluidInput,
- aFluidOutput,
- aOutput,
- aOutput2,
- aDuration,
- aEUtick,
- false);
+ aInput1,
+ aInput2,
+ aFluidInput,
+ aFluidOutput,
+ aOutput,
+ aOutput2,
+ aDuration,
+ aEUtick,
+ false);
}
@Override
public boolean addChemicalRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput,
- FluidStack aFluidOutput, ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick,
- boolean aCleanroom) {
+ FluidStack aFluidOutput, ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick,
+ boolean aCleanroom) {
if (((aInput1 == null) && (aFluidInput == null))
- || ((aOutput == null) && (aOutput2 == null) && (aFluidOutput == null))) {
+ || ((aOutput == null) && (aOutput2 == null) && (aFluidOutput == null))) {
return false;
}
if ((aOutput != null || aOutput2 != null)
- && ((aDuration = GregTech_API.sRecipeFile.get("chemicalreactor", aOutput, aDuration)) <= 0)) {
+ && ((aDuration = GregTech_API.sRecipeFile.get("chemicalreactor", aOutput, aDuration)) <= 0)) {
return false;
}
if ((aFluidOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get(
- "chemicalreactor",
- aFluidOutput.getFluid()
- .getName(),
- aDuration)) <= 0)) {
+ "chemicalreactor",
+ aFluidOutput.getFluid()
+ .getName(),
+ aDuration)) <= 0)) {
return false;
}
if (aEUtick <= 0) {
@@ -419,7 +410,22 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
aCleanroom = false;
}
GT_Recipe.GT_Recipe_Map.sChemicalRecipes.addRecipe(
- true,
+ true,
+ new ItemStack[] { aInput1, aInput2 },
+ new ItemStack[] { aOutput, aOutput2 },
+ null,
+ null,
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
+ aDuration,
+ aEUtick,
+ aCleanroom ? -200 : 0);
+ if (!(aInput1 != null && aInput1.getItem() instanceof GT_IntegratedCircuit_Item
+ && aInput1.getItemDamage() >= 10)
+ && !(aInput2 != null && aInput2.getItem() instanceof GT_IntegratedCircuit_Item
+ && aInput2.getItemDamage() >= 10)) {
+ GT_Recipe.GT_Recipe_Map.sMultiblockChemicalRecipes.addRecipe(
+ false,
new ItemStack[] { aInput1, aInput2 },
new ItemStack[] { aOutput, aOutput2 },
null,
@@ -428,81 +434,57 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
new FluidStack[] { aFluidOutput },
aDuration,
aEUtick,
- aCleanroom ? -200 : 0);
- if (!(aInput1 != null && aInput1.getItem() instanceof GT_IntegratedCircuit_Item
- && aInput1.getItemDamage() >= 10)
- && !(aInput2 != null && aInput2.getItem() instanceof GT_IntegratedCircuit_Item
- && aInput2.getItemDamage() >= 10)) {
- GT_Recipe.GT_Recipe_Map.sMultiblockChemicalRecipes.addRecipe(
- false,
- new ItemStack[] { aInput1, aInput2 },
- new ItemStack[] { aOutput, aOutput2 },
- null,
- null,
- new FluidStack[] { aFluidInput },
- new FluidStack[] { aFluidOutput },
- aDuration,
- aEUtick,
- 0);
+ 0);
}
return true;
}
@Override
public boolean addMultiblockChemicalRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs,
- FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int aDuration, int aEUtick) {
+ FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int aDuration, int aEUtick) {
if (areItemsAndFluidsBothNull(aInputs, aFluidInputs) || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs)) {
return false;
}
if (aEUtick <= 0) {
return false;
}
- GT_Recipe.GT_Recipe_Map.sMultiblockChemicalRecipes.addRecipe(
- false,
- aInputs,
- aOutputs,
- null,
- null,
- aFluidInputs,
- aFluidOutputs,
- aDuration,
- aEUtick,
- 0);
+ GT_Recipe.GT_Recipe_Map.sMultiblockChemicalRecipes
+ .addRecipe(false, aInputs, aOutputs, null, null, aFluidInputs, aFluidOutputs, aDuration, aEUtick, 0);
return true;
}
@Override
public boolean addChemicalRecipeForBasicMachineOnly(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput,
- FluidStack aFluidOutput, ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick) {
+ FluidStack aFluidOutput, ItemStack aOutput, ItemStack aOutput2, int aDuration, int aEUtick) {
if (((aInput1 == null) && (aFluidInput == null))
- || ((aOutput == null) && (aOutput2 == null) && (aFluidOutput == null))) {
+ || ((aOutput == null) && (aOutput2 == null) && (aFluidOutput == null))) {
return false;
}
if ((aOutput != null || aOutput2 != null)
- && ((aDuration = GregTech_API.sRecipeFile.get("chemicalreactor", aOutput, aDuration)) <= 0)) {
+ && ((aDuration = GregTech_API.sRecipeFile.get("chemicalreactor", aOutput, aDuration)) <= 0)) {
return false;
}
if ((aFluidOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get(
- "chemicalreactor",
- aFluidOutput.getFluid()
- .getName(),
- aDuration)) <= 0)) {
+ "chemicalreactor",
+ aFluidOutput.getFluid()
+ .getName(),
+ aDuration)) <= 0)) {
return false;
}
if (aEUtick <= 0) {
return false;
}
GT_Recipe.GT_Recipe_Map.sChemicalRecipes.addRecipe(
- true,
- new ItemStack[] { aInput1, aInput2 },
- new ItemStack[] { aOutput, aOutput2 },
- null,
- null,
- new FluidStack[] { aFluidInput },
- new FluidStack[] { aFluidOutput },
- aDuration,
- aEUtick,
- 0);
+ true,
+ new ItemStack[] { aInput1, aInput2 },
+ new ItemStack[] { aOutput, aOutput2 },
+ null,
+ null,
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
+ aDuration,
+ aEUtick,
+ 0);
return true;
}
@@ -510,60 +492,60 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
public void addDefaultPolymerizationRecipes(Fluid aBasicMaterial, ItemStack aBasicMaterialCell, Fluid aPolymer) {
// Oxygen/Titaniumtetrafluoride -> +50% Output each
addChemicalRecipe(
- ItemList.Cell_Air.get(1),
- GT_Utility.getIntegratedCircuit(1),
- new GT_FluidStack(aBasicMaterial, 144),
- new GT_FluidStack(aPolymer, 144),
- Materials.Empty.getCells(1),
- 160);
+ ItemList.Cell_Air.get(1),
+ GT_Utility.getIntegratedCircuit(1),
+ new GT_FluidStack(aBasicMaterial, 144),
+ new GT_FluidStack(aPolymer, 144),
+ Materials.Empty.getCells(1),
+ 160);
addChemicalRecipe(
- Materials.Oxygen.getCells(1),
- GT_Utility.getIntegratedCircuit(1),
- new GT_FluidStack(aBasicMaterial, 144),
- new GT_FluidStack(aPolymer, 216),
- Materials.Empty.getCells(1),
- 160);
+ Materials.Oxygen.getCells(1),
+ GT_Utility.getIntegratedCircuit(1),
+ new GT_FluidStack(aBasicMaterial, 144),
+ new GT_FluidStack(aPolymer, 216),
+ Materials.Empty.getCells(1),
+ 160);
addChemicalRecipe(
- aBasicMaterialCell,
- GT_Utility.getIntegratedCircuit(1),
- Materials.Air.getGas(14000),
- new GT_FluidStack(aPolymer, 1000),
- Materials.Empty.getCells(1),
- 1120);
+ aBasicMaterialCell,
+ GT_Utility.getIntegratedCircuit(1),
+ Materials.Air.getGas(14000),
+ new GT_FluidStack(aPolymer, 1000),
+ Materials.Empty.getCells(1),
+ 1120);
addChemicalRecipe(
- aBasicMaterialCell,
- GT_Utility.getIntegratedCircuit(1),
- Materials.Oxygen.getGas(7000),
- new GT_FluidStack(aPolymer, 1500),
- Materials.Empty.getCells(1),
- 1120);
+ aBasicMaterialCell,
+ GT_Utility.getIntegratedCircuit(1),
+ Materials.Oxygen.getGas(7000),
+ new GT_FluidStack(aPolymer, 1500),
+ Materials.Empty.getCells(1),
+ 1120);
addMultiblockChemicalRecipe(
- new ItemStack[] { GT_Utility.getIntegratedCircuit(2) },
- new FluidStack[] { new GT_FluidStack(aBasicMaterial, 2160), Materials.Air.getGas(7500),
- Materials.Titaniumtetrachloride.getFluid(100) },
- new FluidStack[] { new GT_FluidStack(aPolymer, 3240) },
- null,
- 800,
- 30);
+ new ItemStack[] { GT_Utility.getIntegratedCircuit(2) },
+ new FluidStack[] { new GT_FluidStack(aBasicMaterial, 2160), Materials.Air.getGas(7500),
+ Materials.Titaniumtetrachloride.getFluid(100) },
+ new FluidStack[] { new GT_FluidStack(aPolymer, 3240) },
+ null,
+ 800,
+ 30);
addMultiblockChemicalRecipe(
- new ItemStack[] { GT_Utility.getIntegratedCircuit(2) },
- new FluidStack[] { new GT_FluidStack(aBasicMaterial, 2160), Materials.Oxygen.getGas(7500),
- Materials.Titaniumtetrachloride.getFluid(100) },
- new FluidStack[] { new GT_FluidStack(aPolymer, 4320) },
- null,
- 800,
- 30);
+ new ItemStack[] { GT_Utility.getIntegratedCircuit(2) },
+ new FluidStack[] { new GT_FluidStack(aBasicMaterial, 2160), Materials.Oxygen.getGas(7500),
+ Materials.Titaniumtetrachloride.getFluid(100) },
+ new FluidStack[] { new GT_FluidStack(aPolymer, 4320) },
+ null,
+ 800,
+ 30);
}
@Override
public boolean addBlastRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, ItemStack aOutput2,
- int aDuration, int aEUt, int aLevel) {
+ int aDuration, int aEUt, int aLevel) {
return addBlastRecipe(aInput1, aInput2, null, null, aOutput1, aOutput2, aDuration, aEUt, aLevel);
}
@Override
public boolean addBlastRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, FluidStack aFluidOutput,
- ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt, int aLevel) {
+ ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt, int aLevel) {
if ((aInput1 == null) || (aOutput1 == null)) {
return false;
}
@@ -571,22 +553,22 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sBlastRecipes.addRecipe(
- true,
- new ItemStack[] { aInput1, aInput2 },
- new ItemStack[] { aOutput1, aOutput2 },
- null,
- null,
- new FluidStack[] { aFluidInput },
- new FluidStack[] { aFluidOutput },
- aDuration,
- aEUt,
- aLevel);
+ true,
+ new ItemStack[] { aInput1, aInput2 },
+ new ItemStack[] { aOutput1, aOutput2 },
+ null,
+ null,
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
+ aDuration,
+ aEUt,
+ aLevel);
return true;
}
public boolean addBlastRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4,
- FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3,
- ItemStack aOutput4, int aDuration, int aEUt, int aLevel) {
+ FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3,
+ ItemStack aOutput4, int aDuration, int aEUt, int aLevel) {
if ((aInput1 == null) || (aOutput1 == null)) {
return false;
}
@@ -594,39 +576,39 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sBlastRecipes.addRecipe(
- true,
- new ItemStack[] { aInput1, aInput2, aInput3, aInput4 },
- new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4 },
- null,
- null,
- new FluidStack[] { aFluidInput },
- new FluidStack[] { aFluidOutput },
- aDuration,
- aEUt,
- aLevel);
+ true,
+ new ItemStack[] { aInput1, aInput2, aInput3, aInput4 },
+ new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4 },
+ null,
+ null,
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
+ aDuration,
+ aEUt,
+ aLevel);
return true;
}
@Override
public boolean addPlasmaForgeRecipe(ItemStack[] ItemInputArray, FluidStack[] FluidInputArray,
- ItemStack[] OutputItemArray, FluidStack[] FluidOutputArray, int aDuration, int aEUt, int coil_heat_level) {
+ ItemStack[] OutputItemArray, FluidStack[] FluidOutputArray, int aDuration, int aEUt, int coil_heat_level) {
GT_Recipe.GT_Recipe_Map.sPlasmaForgeRecipes.addRecipe(
- false,
- ItemInputArray,
- OutputItemArray,
- null,
- null,
- FluidInputArray,
- FluidOutputArray,
- aDuration,
- aEUt,
- coil_heat_level);
+ false,
+ ItemInputArray,
+ OutputItemArray,
+ null,
+ null,
+ FluidInputArray,
+ FluidOutputArray,
+ aDuration,
+ aEUt,
+ coil_heat_level);
return true;
}
@Override
public boolean addPrimitiveBlastRecipe(ItemStack aInput1, ItemStack aInput2, int aCoalAmount, ItemStack aOutput1,
- ItemStack aOutput2, int aDuration) {
+ ItemStack aOutput2, int aDuration) {
if ((aInput1 == null && aInput2 == null) || (aOutput1 == null && aOutput2 == null)) {
return false;
}
@@ -639,110 +621,110 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
Materials[] coals = new Materials[] { Materials.Coal, Materials.Charcoal };
for (Materials coal : coals) {
GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe(
- true,
- new ItemStack[] { aInput1, aInput2, coal.getGems(aCoalAmount) },
- new ItemStack[] { aOutput1, aOutput2, Materials.DarkAsh.getDustTiny(aCoalAmount) },
- null,
- null,
- null,
- null,
- aDuration,
- 0,
- 0);
+ true,
+ new ItemStack[] { aInput1, aInput2, coal.getGems(aCoalAmount) },
+ new ItemStack[] { aOutput1, aOutput2, Materials.DarkAsh.getDustTiny(aCoalAmount) },
+ null,
+ null,
+ null,
+ null,
+ aDuration,
+ 0,
+ 0);
GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe(
- true,
- new ItemStack[] { aInput1, aInput2, coal.getDust(aCoalAmount) },
- new ItemStack[] { aOutput1, aOutput2, Materials.DarkAsh.getDustTiny(aCoalAmount) },
- null,
- null,
- null,
- null,
- aDuration,
- 0,
- 0);
+ true,
+ new ItemStack[] { aInput1, aInput2, coal.getDust(aCoalAmount) },
+ new ItemStack[] { aOutput1, aOutput2, Materials.DarkAsh.getDustTiny(aCoalAmount) },
+ null,
+ null,
+ null,
+ null,
+ aDuration,
+ 0,
+ 0);
}
if (Railcraft.isModLoaded()) {
GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe(
+ true,
+ new ItemStack[] { aInput1, aInput2, RailcraftToolItems.getCoalCoke(aCoalAmount / 2) },
+ new ItemStack[] { aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount / 2) },
+ null,
+ null,
+ null,
+ null,
+ aDuration * 2 / 3,
+ 0,
+ 0);
+ }
+ if (GTPlusPlus.isModLoaded()) {
+ GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe(
+ true,
+ new ItemStack[] { aInput1, aInput2,
+ GT_ModHandler.getModItem(GTPlusPlus.ID, "itemCactusCoke", (aCoalAmount * 2L)) },
+ new ItemStack[] { aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount * 2) },
+ null,
+ null,
+ null,
+ null,
+ aDuration * 2 / 3,
+ 0,
+ 0);
+ GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe(
+ true,
+ new ItemStack[] { aInput1, aInput2,
+ GT_ModHandler.getModItem(GTPlusPlus.ID, "itemSugarCoke", (aCoalAmount * 2L)) },
+ new ItemStack[] { aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount * 2) },
+ null,
+ null,
+ null,
+ null,
+ aDuration * 2 / 3,
+ 0,
+ 0);
+ }
+ if ((aInput1 == null || aInput1.stackSize <= 6) && (aInput2 == null || aInput2.stackSize <= 6)
+ && (aOutput1 == null || aOutput1.stackSize <= 6)
+ && (aOutput2 == null || aOutput2.stackSize <= 6)) {
+ aInput1 = aInput1 == null ? null : GT_Utility.copyAmount(aInput1.stackSize * 10L, aInput1);
+ aInput2 = aInput2 == null ? null : GT_Utility.copyAmount(aInput2.stackSize * 10L, aInput2);
+ aOutput1 = aOutput1 == null ? null : GT_Utility.copyAmount(aOutput1.stackSize * 10L, aOutput1);
+ aOutput2 = aOutput2 == null ? null : GT_Utility.copyAmount(aOutput2.stackSize * 10L, aOutput2);
+ for (Materials coal : coals) {
+ GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe(
true,
- new ItemStack[] { aInput1, aInput2, RailcraftToolItems.getCoalCoke(aCoalAmount / 2) },
- new ItemStack[] { aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount / 2) },
+ new ItemStack[] { aInput1, aInput2, coal.getBlocks(aCoalAmount) },
+ new ItemStack[] { aOutput1, aOutput2, Materials.DarkAsh.getDust(aCoalAmount) },
null,
null,
null,
null,
- aDuration * 2 / 3,
+ aDuration * 10,
0,
0);
- }
- if (GTPlusPlus.isModLoaded()) {
- GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe(
+ GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe(
true,
- new ItemStack[] { aInput1, aInput2,
- GT_ModHandler.getModItem(GTPlusPlus.ID, "itemCactusCoke", (aCoalAmount * 2L)) },
- new ItemStack[] { aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount * 2) },
+ new ItemStack[] { aInput1, aInput2, coal.getBlocks(aCoalAmount) },
+ new ItemStack[] { aOutput1, aOutput2, Materials.DarkAsh.getDust(aCoalAmount) },
null,
null,
null,
null,
- aDuration * 2 / 3,
+ aDuration * 10,
0,
0);
- GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe(
+ }
+ if (Railcraft.isModLoaded()) {
+ GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe(
true,
- new ItemStack[] { aInput1, aInput2,
- GT_ModHandler.getModItem(GTPlusPlus.ID, "itemSugarCoke", (aCoalAmount * 2L)) },
- new ItemStack[] { aOutput1, aOutput2, Materials.Ash.getDustTiny(aCoalAmount * 2) },
+ new ItemStack[] { aInput1, aInput2, EnumCube.COKE_BLOCK.getItem(aCoalAmount / 2) },
+ new ItemStack[] { aOutput1, aOutput2, Materials.Ash.getDust(aCoalAmount / 2) },
null,
null,
null,
null,
- aDuration * 2 / 3,
+ aDuration * 20 / 3,
0,
0);
- }
- if ((aInput1 == null || aInput1.stackSize <= 6) && (aInput2 == null || aInput2.stackSize <= 6)
- && (aOutput1 == null || aOutput1.stackSize <= 6)
- && (aOutput2 == null || aOutput2.stackSize <= 6)) {
- aInput1 = aInput1 == null ? null : GT_Utility.copyAmount(aInput1.stackSize * 10L, aInput1);
- aInput2 = aInput2 == null ? null : GT_Utility.copyAmount(aInput2.stackSize * 10L, aInput2);
- aOutput1 = aOutput1 == null ? null : GT_Utility.copyAmount(aOutput1.stackSize * 10L, aOutput1);
- aOutput2 = aOutput2 == null ? null : GT_Utility.copyAmount(aOutput2.stackSize * 10L, aOutput2);
- for (Materials coal : coals) {
- GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe(
- true,
- new ItemStack[] { aInput1, aInput2, coal.getBlocks(aCoalAmount) },
- new ItemStack[] { aOutput1, aOutput2, Materials.DarkAsh.getDust(aCoalAmount) },
- null,
- null,
- null,
- null,
- aDuration * 10,
- 0,
- 0);
- GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe(
- true,
- new ItemStack[] { aInput1, aInput2, coal.getBlocks(aCoalAmount) },
- new ItemStack[] { aOutput1, aOutput2, Materials.DarkAsh.getDust(aCoalAmount) },
- null,
- null,
- null,
- null,
- aDuration * 10,
- 0,
- 0);
- }
- if (Railcraft.isModLoaded()) {
- GT_Recipe.GT_Recipe_Map.sPrimitiveBlastRecipes.addRecipe(
- true,
- new ItemStack[] { aInput1, aInput2, EnumCube.COKE_BLOCK.getItem(aCoalAmount / 2) },
- new ItemStack[] { aOutput1, aOutput2, Materials.Ash.getDust(aCoalAmount / 2) },
- null,
- null,
- null,
- null,
- aDuration * 20 / 3,
- 0,
- 0);
}
}
return true;
@@ -750,7 +732,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addCannerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, ItemStack aOutput2,
- int aDuration, int aEUt) {
+ int aDuration, int aEUt) {
if ((aInput1 == null) || (aOutput1 == null)) {
return false;
}
@@ -763,22 +745,22 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addAlloySmelterRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration,
- int aEUt) {
+ int aEUt) {
return addAlloySmelterRecipe(aInput1, aInput2, aOutput1, aDuration, aEUt, false);
}
@Override
public boolean addAlloySmelterRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration,
- int aEUt, boolean hidden) {
+ int aEUt, boolean hidden) {
if ((aInput1 == null) || (aOutput1 == null || Materials.Graphite.contains(aInput1))) {
return false;
}
if ((aInput2 == null) && ((OrePrefixes.ingot.contains(aInput1)) || (OrePrefixes.dust.contains(aInput1))
- || (OrePrefixes.gem.contains(aInput1)))) {
+ || (OrePrefixes.gem.contains(aInput1)))) {
return false;
}
if ((aDuration = GregTech_API.sRecipeFile.get("alloysmelting", aInput2 == null ? aInput1 : aOutput1, aDuration))
- <= 0) {
+ <= 0) {
return false;
}
GT_Recipe tRecipe = new GT_Recipe(aInput1, aInput2, aEUt, aDuration, aOutput1);
@@ -811,7 +793,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addCutterRecipe(ItemStack aInput, FluidStack aLubricant, ItemStack aOutput1, ItemStack aOutput2,
- int aDuration, int aEUt) {
+ int aDuration, int aEUt) {
if ((aInput == null) || (aLubricant == null) || (aOutput1 == null)) {
return false;
}
@@ -819,39 +801,39 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sCutterRecipes.addRecipe(
- true,
- new ItemStack[] { aInput },
- new ItemStack[] { aOutput1, aOutput2 },
- null,
- new FluidStack[] { aLubricant },
- null,
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput },
+ new ItemStack[] { aOutput1, aOutput2 },
+ null,
+ new FluidStack[] { aLubricant },
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
public boolean addCutterRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt,
- boolean aCleanroom) {
+ boolean aCleanroom) {
return addCutterRecipe(aInput, null, aOutput1, aOutput2, aDuration, aEUt, aCleanroom);
}
public boolean addCutterRecipe(ItemStack aInput, int aCircuit, ItemStack aOutput1, ItemStack aOutput2,
- int aDuration, int aEUt) {
+ int aDuration, int aEUt) {
return addCutterRecipe(aInput, aCircuit, aOutput1, aOutput2, aDuration, aEUt, false);
}
public boolean addCutterRecipe(ItemStack aInput, int aCircuit, ItemStack aOutput1, ItemStack aOutput2,
- int aDuration, int aEUt, boolean aCleanroom) {
+ int aDuration, int aEUt, boolean aCleanroom) {
return addCutterRecipe(
- aInput,
- GT_Utility.getIntegratedCircuit(aCircuit),
- aOutput1,
- aOutput2,
- aDuration,
- aEUt,
- aCleanroom);
+ aInput,
+ GT_Utility.getIntegratedCircuit(aCircuit),
+ aOutput1,
+ aOutput2,
+ aDuration,
+ aEUt,
+ aCleanroom);
}
@Override
@@ -861,23 +843,23 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addCutterRecipe(ItemStack aInput, ItemStack aCircuit, ItemStack aOutput1, ItemStack aOutput2,
- int aDuration, int aEUt) {
+ int aDuration, int aEUt) {
return addCutterRecipe(aInput, aCircuit, aOutput1, aOutput2, aDuration, aEUt, false);
}
@Override
public boolean addCutterRecipe(ItemStack aInput, ItemStack aCircuit, ItemStack aOutput1, ItemStack aOutput2,
- int aDuration, int aEUt, boolean aCleanroom) {
+ int aDuration, int aEUt, boolean aCleanroom) {
return addCutterRecipe(
- new ItemStack[] { aInput, aCircuit },
- new ItemStack[] { aOutput1, aOutput2 },
- aDuration,
- aEUt,
- aCleanroom ? -200 : 0);
+ new ItemStack[] { aInput, aCircuit },
+ new ItemStack[] { aOutput1, aOutput2 },
+ aDuration,
+ aEUt,
+ aCleanroom ? -200 : 0);
}
public boolean addCutterRecipe(ItemStack[] aInputs, ItemStack[] aOutputs, int aDuration, int aEUt,
- boolean aCleanroom) {
+ boolean aCleanroom) {
return addCutterRecipe(aInputs, aOutputs, aDuration, aEUt, aCleanroom ? -200 : 0);
}
@@ -887,7 +869,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
if (Arrays.stream(aOutputs)
- .noneMatch(Objects::nonNull)) {
+ .noneMatch(Objects::nonNull)) {
return false;
}
if ((aDuration = GregTech_API.sRecipeFile.get("cutting", aInputs[0], aDuration)) <= 0) {
@@ -897,57 +879,56 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
aSpecial = 0;
}
GT_Recipe.GT_Recipe_Map.sCutterRecipes.addRecipe(
- true,
- aInputs,
- aOutputs,
- null,
- new FluidStack[] { Materials.Water.getFluid(Math.max(4, Math.min(1000, aDuration * aEUt / 320))) },
- null,
- aDuration * 2,
- aEUt,
- aSpecial);
+ true,
+ aInputs,
+ aOutputs,
+ null,
+ new FluidStack[] { Materials.Water.getFluid(Math.max(4, Math.min(1000, aDuration * aEUt / 320))) },
+ null,
+ aDuration * 2,
+ aEUt,
+ aSpecial);
GT_Recipe.GT_Recipe_Map.sCutterRecipes.addRecipe(
- true,
- aInputs,
- aOutputs,
- null,
- new FluidStack[] {
- GT_ModHandler.getDistilledWater(Math.max(3, Math.min(750, aDuration * aEUt / 426))) },
- null,
- aDuration * 2,
- aEUt,
- aSpecial);
+ true,
+ aInputs,
+ aOutputs,
+ null,
+ new FluidStack[] { GT_ModHandler.getDistilledWater(Math.max(3, Math.min(750, aDuration * aEUt / 426))) },
+ null,
+ aDuration * 2,
+ aEUt,
+ aSpecial);
GT_Recipe.GT_Recipe_Map.sCutterRecipes.addRecipe(
- true,
- aInputs,
- aOutputs,
- null,
- new FluidStack[] { Materials.Lubricant.getFluid(Math.max(1, Math.min(250, aDuration * aEUt / 1280))) },
- null,
- aDuration,
- aEUt,
- aSpecial);
+ true,
+ aInputs,
+ aOutputs,
+ null,
+ new FluidStack[] { Materials.Lubricant.getFluid(Math.max(1, Math.min(250, aDuration * aEUt / 1280))) },
+ null,
+ aDuration,
+ aEUt,
+ aSpecial);
return true;
}
@Override
public boolean addAssemblerRecipe(ItemStack aInput1, Object aOreDict, int aAmount, FluidStack aFluidInput,
- ItemStack aOutput1, int aDuration, int aEUt) {
+ ItemStack aOutput1, int aDuration, int aEUt) {
for (ItemStack tStack : GT_OreDictUnificator.getOresImmutable(aOreDict)) {
if (GT_Utility.isStackValid(tStack)) addAssemblerRecipe(
- aInput1,
- GT_Utility.copyAmount(aAmount, tStack),
- aFluidInput,
- aOutput1,
- aDuration,
- aEUt);
+ aInput1,
+ GT_Utility.copyAmount(aAmount, tStack),
+ aFluidInput,
+ aOutput1,
+ aDuration,
+ aEUt);
}
return true;
}
@Override
public boolean addAssemblerRecipe(ItemStack[] aInputs, Object aOreDict, int aAmount, FluidStack aFluidInput,
- ItemStack aOutput1, int aDuration, int aEUt) {
+ ItemStack aOutput1, int aDuration, int aEUt) {
for (ItemStack tStack : GT_OreDictUnificator.getOresImmutable(aOreDict)) {
if (GT_Utility.isStackValid(tStack)) {
ItemStack[] extendedInputs = new ItemStack[aInputs.length + 1];
@@ -961,45 +942,45 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addAssemblerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, int aDuration,
- int aEUt) {
+ int aEUt) {
return addAssemblerRecipe(
- new ItemStack[] { aInput1, aInput2 == null ? aInput1 : aInput2 },
- null,
- aOutput1,
- aDuration,
- aEUt,
- false);
+ new ItemStack[] { aInput1, aInput2 == null ? aInput1 : aInput2 },
+ null,
+ aOutput1,
+ aDuration,
+ aEUt,
+ false);
}
@Override
public boolean addAssemblerRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, ItemStack aOutput1,
- int aDuration, int aEUt) {
+ int aDuration, int aEUt) {
return addAssemblerRecipe(new ItemStack[] { aInput1, aInput2 }, aFluidInput, aOutput1, aDuration, aEUt);
}
@Override
public boolean addAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput1, int aDuration,
- int aEUt) {
+ int aEUt) {
return addAssemblerRecipe(aInputs, aFluidInput, aOutput1, aDuration, aEUt, false);
}
@Override
public boolean addAssemblerRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput, ItemStack aOutput1,
- int aDuration, int aEUt, boolean aCleanroom) {
+ int aDuration, int aEUt, boolean aCleanroom) {
if (aInput2 == null)
return addAssemblerRecipe(new ItemStack[] { aInput1 }, aFluidInput, aOutput1, aDuration, aEUt, aCleanroom);
return addAssemblerRecipe(
- new ItemStack[] { aInput1, aInput2 },
- aFluidInput,
- aOutput1,
- aDuration,
- aEUt,
- aCleanroom);
+ new ItemStack[] { aInput1, aInput2 },
+ aFluidInput,
+ aOutput1,
+ aDuration,
+ aEUt,
+ aCleanroom);
}
@Override
public boolean addAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput1, int aDuration,
- int aEUt, boolean aCleanroom) {
+ int aEUt, boolean aCleanroom) {
if (areItemsAndFluidsBothNull(aInputs, new FluidStack[] { aFluidInput })) {
return false;
@@ -1019,7 +1000,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
for (int oreID : OreDictionary.getOreIDs(aOutput1)) {
if (OreDictionary.getOreName(oreID)
- .startsWith("circuit")) {
+ .startsWith("circuit")) {
return this.addAssemblerRecipeNonOD(aInputs, aFluidInput, aOutput1, aDuration, aEUt, aCleanroom);
}
}
@@ -1031,21 +1012,21 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
}
GT_Recipe.GT_Recipe_Map.sAssemblerRecipes.addRecipe(
- true,
- aInputs,
- new ItemStack[] { aOutput1 },
- null,
- new FluidStack[] { aFluidInput },
- null,
- aDuration,
- aEUt,
- aCleanroom ? -200 : 0);
+ true,
+ aInputs,
+ new ItemStack[] { aOutput1 },
+ null,
+ new FluidStack[] { aFluidInput },
+ null,
+ aDuration,
+ aEUt,
+ aCleanroom ? -200 : 0);
return true;
}
public boolean addAssemblerRecipeNonOD(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput1,
- int aDuration, int aEUt, boolean aCleanroom) {
+ int aDuration, int aEUt, boolean aCleanroom) {
if (areItemsAndFluidsBothNull(aInputs, new FluidStack[] { aFluidInput })) {
return false;
}
@@ -1063,15 +1044,15 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
}
GT_Recipe.GT_Recipe_Map.sAssemblerRecipes.addRecipe(
- true,
- aInputs,
- new ItemStack[] { aOutput1 },
- null,
- new FluidStack[] { aFluidInput },
- null,
- aDuration,
- aEUt,
- aCleanroom ? -200 : 0);
+ true,
+ aInputs,
+ new ItemStack[] { aOutput1 },
+ null,
+ new FluidStack[] { aFluidInput },
+ null,
+ aDuration,
+ aEUt,
+ aCleanroom ? -200 : 0);
return true;
}
@@ -1084,15 +1065,15 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sWiremillRecipes.addRecipe(
- true,
- new ItemStack[] { aInput },
- new ItemStack[] { aOutput },
- null,
- null,
- null,
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput },
+ new ItemStack[] { aOutput },
+ null,
+ null,
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@@ -1105,15 +1086,15 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sWiremillRecipes.addRecipe(
- true,
- new ItemStack[] { aInput, aCircuit },
- new ItemStack[] { aOutput },
- null,
- null,
- null,
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput, aCircuit },
+ new ItemStack[] { aOutput },
+ null,
+ null,
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@@ -1126,15 +1107,15 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sPolarizerRecipes.addRecipe(
- true,
- new ItemStack[] { aInput },
- new ItemStack[] { aOutput },
- null,
- null,
- null,
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput },
+ new ItemStack[] { aOutput },
+ null,
+ null,
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@@ -1159,15 +1140,15 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe tRecipe = new GT_Recipe(
- new ItemStack[] { aInput1, aCircuit },
- new ItemStack[] { aOutput1 },
- null,
- null,
- null,
- null,
- aDuration,
- Math.max(aEUt, 1),
- 0);
+ new ItemStack[] { aInput1, aCircuit },
+ new ItemStack[] { aOutput1 },
+ null,
+ null,
+ null,
+ null,
+ aDuration,
+ Math.max(aEUt, 1),
+ 0);
GT_Recipe.GT_Recipe_Map.sBenderRecipes.addRecipe(tRecipe);
return true;
}
@@ -1181,15 +1162,15 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sExtruderRecipes.addRecipe(
- true,
- new ItemStack[] { aInput, aShape },
- new ItemStack[] { aOutput },
- null,
- null,
- null,
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput, aShape },
+ new ItemStack[] { aOutput },
+ null,
+ null,
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@@ -1202,62 +1183,62 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sSlicerRecipes.addRecipe(
- true,
- new ItemStack[] { aInput, aShape },
- new ItemStack[] { aOutput },
- null,
- null,
- null,
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput, aShape },
+ new ItemStack[] { aOutput },
+ null,
+ null,
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
public boolean addOreWasherRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3,
- FluidStack aFluidInput, int aDuration, int aEUt) {
+ FluidStack aFluidInput, int aDuration, int aEUt) {
if ((aInput == null) || (aFluidInput == null)
- || ((aOutput1 == null) || (aOutput2 == null) || (aOutput3 == 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,
- new FluidStack[] { aFluidInput },
- null,
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput },
+ new ItemStack[] { aOutput1, aOutput2, aOutput3 },
+ null,
+ new FluidStack[] { aFluidInput },
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
public boolean addOreWasherRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3,
- FluidStack aFluidInput, int[] aChances, int aDuration, int aEUt) {
+ FluidStack aFluidInput, int[] aChances, int aDuration, int aEUt) {
if ((aInput == null) || (aFluidInput == null)
- || ((aOutput1 == null) || (aOutput2 == null) || (aOutput3 == 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);
+ true,
+ new ItemStack[] { aInput },
+ new ItemStack[] { aOutput1, aOutput2, aOutput3 },
+ null,
+ aChances,
+ new FluidStack[] { aFluidInput },
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@@ -1277,33 +1258,8 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
// new GT_Recipe(aInput1, aInput2, aOutput1, aOutput2);
if (tGunpowder < 65) {
GT_Recipe.GT_Recipe_Map.sImplosionRecipes.addRecipe(
- true,
- new ItemStack[] { aInput1, ItemList.Block_Powderbarrel.get(tGunpowder) },
- new ItemStack[] { aOutput1, aOutput2 },
- null,
- null,
- null,
- null,
- 20,
- 30,
- 0);
- }
- if (tDynamite < 17) {
- GT_Recipe.GT_Recipe_Map.sImplosionRecipes.addRecipe(
- true,
- new ItemStack[] { aInput1, GT_ModHandler.getIC2Item("dynamite", tDynamite, null) },
- new ItemStack[] { aOutput1, aOutput2 },
- null,
- null,
- null,
- null,
- 20,
- 30,
- 0);
- }
- GT_Recipe.GT_Recipe_Map.sImplosionRecipes.addRecipe(
true,
- new ItemStack[] { aInput1, new ItemStack(Blocks.tnt, tTNT) },
+ new ItemStack[] { aInput1, ItemList.Block_Powderbarrel.get(tGunpowder) },
new ItemStack[] { aOutput1, aOutput2 },
null,
null,
@@ -1312,9 +1268,11 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
20,
30,
0);
- GT_Recipe.GT_Recipe_Map.sImplosionRecipes.addRecipe(
+ }
+ if (tDynamite < 17) {
+ GT_Recipe.GT_Recipe_Map.sImplosionRecipes.addRecipe(
true,
- new ItemStack[] { aInput1, GT_ModHandler.getIC2Item("industrialTnt", tITNT, null) },
+ new ItemStack[] { aInput1, GT_ModHandler.getIC2Item("dynamite", tDynamite, null) },
new ItemStack[] { aOutput1, aOutput2 },
null,
null,
@@ -1323,6 +1281,29 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
20,
30,
0);
+ }
+ GT_Recipe.GT_Recipe_Map.sImplosionRecipes.addRecipe(
+ true,
+ new ItemStack[] { aInput1, new ItemStack(Blocks.tnt, tTNT) },
+ new ItemStack[] { aOutput1, aOutput2 },
+ null,
+ null,
+ null,
+ null,
+ 20,
+ 30,
+ 0);
+ GT_Recipe.GT_Recipe_Map.sImplosionRecipes.addRecipe(
+ true,
+ new ItemStack[] { aInput1, GT_ModHandler.getIC2Item("industrialTnt", tITNT, null) },
+ new ItemStack[] { aOutput1, aOutput2 },
+ null,
+ null,
+ null,
+ null,
+ 20,
+ 30,
+ 0);
return true;
}
@@ -1330,13 +1311,13 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
@Deprecated
public boolean addDistillationRecipe(ItemStack aInput1, int aInput2, ItemStack aOutput1, ItemStack aOutput2,
- ItemStack aOutput3, ItemStack aOutput4, int aDuration, int aEUt) {
+ ItemStack aOutput3, ItemStack aOutput4, int aDuration, int aEUt) {
return false;
}
@Override
public boolean addUniversalDistillationRecipe(FluidStack aInput, FluidStack[] aOutputs, ItemStack aOutput2,
- int aDuration, int aEUt) {
+ int aDuration, int aEUt) {
for (int i = 0; i < Math.min(aOutputs.length, 11); i++) {
addDistilleryRecipe(i + 1, aInput, aOutputs[i], aOutput2, aDuration * 2, aEUt / 4, false);
}
@@ -1346,7 +1327,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addDistillationTowerRecipe(FluidStack aInput, FluidStack[] aOutputs, ItemStack aOutput2,
- int aDuration, int aEUt) {
+ int aDuration, int aEUt) {
if (aInput == null || aOutputs == null || aOutputs.length < 1 || aOutputs.length > 11) {
return false;
}
@@ -1354,21 +1335,21 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sDistillationRecipes.addRecipe(
- false,
- null,
- new ItemStack[] { aOutput2 },
- null,
- new FluidStack[] { aInput },
- aOutputs,
- aDuration,
- Math.max(1, aEUt),
- 0);
+ false,
+ null,
+ new ItemStack[] { aOutput2 },
+ null,
+ new FluidStack[] { aInput },
+ aOutputs,
+ aDuration,
+ Math.max(1, aEUt),
+ 0);
return false;
}
@Override
public boolean addDistillationTowerRecipe(FluidStack aInput, ItemStack[] aCircuit, FluidStack[] aOutputs,
- ItemStack aOutput2, int aDuration, int aEUt) {
+ ItemStack aOutput2, int aDuration, int aEUt) {
if (aInput == null || aOutputs == null || aOutputs.length < 1 || aOutputs.length > 11) {
return false;
}
@@ -1376,21 +1357,21 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sDistillationRecipes.addRecipe(
- false,
- aCircuit,
- new ItemStack[] { aOutput2 },
- null,
- new FluidStack[] { aInput },
- aOutputs,
- aDuration,
- Math.max(1, aEUt),
- 0);
+ false,
+ aCircuit,
+ new ItemStack[] { aOutput2 },
+ null,
+ new FluidStack[] { aInput },
+ aOutputs,
+ aDuration,
+ Math.max(1, aEUt),
+ 0);
return false;
}
@Override
public boolean addUniversalDistillationRecipewithCircuit(FluidStack aInput, ItemStack[] aCircuit,
- FluidStack[] aOutputs, ItemStack aOutput2, int aDuration, int aEUt) {
+ FluidStack[] aOutputs, ItemStack aOutput2, int aDuration, int aEUt) {
for (int i = 0; i < Math.min(aOutputs.length, 11); i++) {
addDistilleryRecipe(i + 1, aInput, aOutputs[i], aOutput2, aDuration * 2, aEUt / 4, false);
}
@@ -1443,24 +1424,24 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addVacuumFreezerRecipe(ItemStack[] aItemInput, FluidStack[] aFluidInput, ItemStack[] aItemOutput,
- FluidStack[] aFluidOutput, int aDuration, int aEUt) {
+ FluidStack[] aFluidOutput, int aDuration, int aEUt) {
GT_Recipe.GT_Recipe_Map.sVacuumRecipes.addRecipe(
- false,
- aItemInput,
- aItemOutput,
- null,
- aFluidInput,
- aFluidOutput,
- Math.max(1, aDuration),
- Math.max(1, aEUt),
- 0);
+ false,
+ aItemInput,
+ aItemOutput,
+ null,
+ aFluidInput,
+ aFluidOutput,
+ Math.max(1, aDuration),
+ Math.max(1, aEUt),
+ 0);
return true;
}
@Override
@Deprecated
public boolean addGrinderRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aOutput1, ItemStack aOutput2,
- ItemStack aOutput3, ItemStack aOutput4) {
+ ItemStack aOutput3, ItemStack aOutput4) {
return false;
}
@@ -1490,7 +1471,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addChemicalBathRecipe(ItemStack aInput, FluidStack aBathingFluid, ItemStack aOutput1,
- ItemStack aOutput2, ItemStack aOutput3, FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt) {
+ ItemStack aOutput2, ItemStack aOutput3, FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt) {
return false;
}
@@ -1503,38 +1484,38 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sHammerRecipes.addRecipe(
- true,
- new ItemStack[] { aInput1 },
- new ItemStack[] { aOutput1 },
- null,
- null,
- null,
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput1 },
+ new ItemStack[] { aOutput1 },
+ null,
+ null,
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
public boolean addForgeHammerRecipe(ItemStack[] ItemInputArray, FluidStack[] FluidInputArray,
- ItemStack[] ItemOutputArray, FluidStack[] FluidOutputArray, int aDuration, int aEUt) {
+ ItemStack[] ItemOutputArray, FluidStack[] FluidOutputArray, int aDuration, int aEUt) {
GT_Recipe.GT_Recipe_Map.sHammerRecipes.addRecipe(
- true,
- ItemInputArray,
- ItemOutputArray,
- null,
- FluidInputArray,
- FluidOutputArray,
- aDuration,
- aEUt,
- 0);
+ true,
+ ItemInputArray,
+ ItemOutputArray,
+ null,
+ FluidInputArray,
+ FluidOutputArray,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
public boolean addBoxingRecipe(ItemStack aContainedItem, ItemStack aEmptyBox, ItemStack aFullBox, int aDuration,
- int aEUt) {
+ int aEUt) {
if ((aContainedItem == null) || (aFullBox == null)) {
return false;
}
@@ -1542,21 +1523,21 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sBoxinatorRecipes.addRecipe(
- true,
- new ItemStack[] { aContainedItem, aEmptyBox },
- new ItemStack[] { aFullBox },
- null,
- null,
- null,
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aContainedItem, aEmptyBox },
+ new ItemStack[] { aFullBox },
+ null,
+ null,
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
public boolean addUnboxingRecipe(ItemStack aFullBox, ItemStack aContainedItem, ItemStack aEmptyBox, int aDuration,
- int aEUt) {
+ int aEUt) {
if ((aFullBox == null) || (aContainedItem == null)) {
return false;
}
@@ -1564,21 +1545,21 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sUnboxinatorRecipes.addRecipe(
- true,
- new ItemStack[] { aFullBox },
- new ItemStack[] { aContainedItem, aEmptyBox },
- null,
- null,
- null,
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aFullBox },
+ new ItemStack[] { aContainedItem, aEmptyBox },
+ null,
+ null,
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
public boolean addThermalCentrifugeRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2,
- ItemStack aOutput3, int aDuration, int aEUt) {
+ ItemStack aOutput3, int aDuration, int aEUt) {
if ((aInput == null) || (aOutput1 == null)) {
return false;
}
@@ -1586,21 +1567,21 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sThermalCentrifugeRecipes.addRecipe(
- true,
- new ItemStack[] { aInput },
- new ItemStack[] { aOutput1, aOutput2, aOutput3 },
- null,
- null,
- null,
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput },
+ new ItemStack[] { aOutput1, aOutput2, aOutput3 },
+ null,
+ null,
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
public boolean addThermalCentrifugeRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2,
- ItemStack aOutput3, int[] aChances, int aDuration, int aEUt) {
+ ItemStack aOutput3, int[] aChances, int aDuration, int aEUt) {
if ((aInput == null) || (aOutput1 == null)) {
return false;
}
@@ -1608,16 +1589,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
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);
+ true,
+ new ItemStack[] { aInput },
+ new ItemStack[] { aOutput1, aOutput2, aOutput3 },
+ null,
+ aChances,
+ null,
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@@ -1630,21 +1611,21 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sAmplifiers.addRecipe(
- true,
- new ItemStack[] { aAmplifierItem },
- null,
- null,
- null,
- new FluidStack[] { Materials.UUAmplifier.getFluid(aAmplifierAmountOutputted) },
- aDuration,
- 30,
- 0);
+ true,
+ new ItemStack[] { aAmplifierItem },
+ null,
+ null,
+ null,
+ new FluidStack[] { Materials.UUAmplifier.getFluid(aAmplifierAmountOutputted) },
+ aDuration,
+ 30,
+ 0);
return true;
}
@Override
public boolean addBrewingRecipe(ItemStack aIngredient, Fluid aInput, Fluid aOutput, int aDuration, int aEUt,
- boolean aHidden) {
+ boolean aHidden) {
if ((aIngredient == null) || (aInput == null) || (aOutput == null)) {
return false;
}
@@ -1652,15 +1633,15 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sBrewingRecipes.addRecipe(
- false,
- new ItemStack[] { aIngredient },
- null,
- null,
- new FluidStack[] { new FluidStack(aInput, 750) },
- new FluidStack[] { new FluidStack(aOutput, 750) },
- aDuration,
- aEUt,
- 0);
+ false,
+ new ItemStack[] { aIngredient },
+ null,
+ null,
+ new FluidStack[] { new FluidStack(aInput, 750) },
+ new FluidStack[] { new FluidStack(aOutput, 750) },
+ aDuration,
+ aEUt,
+ 0);
if ((aHidden) && (tRecipe != null)) {
tRecipe.mHidden = true;
}
@@ -1674,7 +1655,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addBrewingRecipeCustom(ItemStack aIngredient, FluidStack aInput, FluidStack aOutput, int aDuration,
- int aEUt, boolean aHidden) {
+ int aEUt, boolean aHidden) {
if ((aInput == null) || (aOutput == null)) {
return false;
}
@@ -1682,15 +1663,15 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sBrewingRecipes.addRecipe(
- false,
- new ItemStack[] { aIngredient },
- null,
- null,
- new FluidStack[] { aInput },
- new FluidStack[] { aOutput },
- aDuration,
- aEUt,
- 0);
+ false,
+ new ItemStack[] { aIngredient },
+ null,
+ null,
+ new FluidStack[] { aInput },
+ new FluidStack[] { aOutput },
+ aDuration,
+ aEUt,
+ 0);
if ((aHidden) && (tRecipe != null)) {
tRecipe.mHidden = true;
}
@@ -1699,27 +1680,27 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addFermentingRecipe(FluidStack aInput, FluidStack aOutput, int aDuration, int aEUt,
- boolean aHidden) {
+ boolean aHidden) {
if ((aInput == null) || (aOutput == null)) {
return false;
}
if ((aDuration = GregTech_API.sRecipeFile.get(
- "fermenting",
- aOutput.getFluid()
- .getUnlocalizedName(),
- aDuration)) <= 0) {
+ "fermenting",
+ aOutput.getFluid()
+ .getUnlocalizedName(),
+ aDuration)) <= 0) {
return false;
}
GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sFermentingRecipes.addRecipe(
- false,
- null,
- null,
- null,
- new FluidStack[] { aInput },
- new FluidStack[] { aOutput },
- aDuration,
- aEUt,
- 0);
+ false,
+ null,
+ null,
+ null,
+ new FluidStack[] { aInput },
+ new FluidStack[] { aOutput },
+ aDuration,
+ aEUt,
+ 0);
if ((aHidden) && (tRecipe != null)) {
tRecipe.mHidden = true;
}
@@ -1733,15 +1714,15 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addDistilleryRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput,
- ItemStack aSolidOutput, int aDuration, int aEUt, boolean aHidden) {
+ ItemStack aSolidOutput, int aDuration, int aEUt, boolean aHidden) {
if ((aInput == null) || (aOutput == null)) {
return false;
}
if ((aDuration = GregTech_API.sRecipeFile.get(
- "distillery",
- aOutput.getFluid()
- .getUnlocalizedName(),
- aDuration)) <= 0) {
+ "distillery",
+ aOutput.getFluid()
+ .getUnlocalizedName(),
+ aDuration)) <= 0) {
return false;
}
// reduce the batch size if fluid amount is exceeding
@@ -1766,10 +1747,9 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
if (aSolidOutput != null) {
ItemData tData = GT_OreDictUnificator.getItemData(aSolidOutput);
if (tData != null && (tData.mPrefix == OrePrefixes.dust
- || OrePrefixes.dust.mFamiliarPrefixes.contains(tData.mPrefix))) {
- aSolidOutput = GT_OreDictUnificator.getDust(
- tData.mMaterial.mMaterial,
- tData.mMaterial.mAmount * aSolidOutput.stackSize / tScale);
+ || OrePrefixes.dust.mFamiliarPrefixes.contains(tData.mPrefix))) {
+ aSolidOutput = GT_OreDictUnificator
+ .getDust(tData.mMaterial.mMaterial, tData.mMaterial.mAmount * aSolidOutput.stackSize / tScale);
} else {
if (aSolidOutput.stackSize / tScale == 0) aSolidOutput = GT_Values.NI;
else aSolidOutput = new ItemStack(aSolidOutput.getItem(), aSolidOutput.stackSize / tScale);
@@ -1779,15 +1759,15 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
}
GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sDistilleryRecipes.addRecipe(
- true,
- new ItemStack[] { aCircuit },
- new ItemStack[] { aSolidOutput },
- null,
- new FluidStack[] { aInput },
- new FluidStack[] { aOutput },
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aCircuit },
+ new ItemStack[] { aSolidOutput },
+ null,
+ new FluidStack[] { aInput },
+ new FluidStack[] { aOutput },
+ aDuration,
+ aEUt,
+ 0);
if ((aHidden) && (tRecipe != null)) {
tRecipe.mHidden = true;
}
@@ -1796,55 +1776,47 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addDistilleryRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, int aDuration,
- int aEUt, boolean aHidden) {
+ int aEUt, boolean aHidden) {
return addDistilleryRecipe(aCircuit, aInput, aOutput, null, aDuration, aEUt, aHidden);
}
@Override
public boolean addDistilleryRecipe(int circuitConfig, FluidStack aInput, FluidStack aOutput, ItemStack aSolidOutput,
- int aDuration, int aEUt, boolean aHidden) {
+ int aDuration, int aEUt, boolean aHidden) {
return addDistilleryRecipe(
- GT_Utility.getIntegratedCircuit(circuitConfig),
- aInput,
- aOutput,
- aSolidOutput,
- aDuration,
- aEUt,
- aHidden);
+ GT_Utility.getIntegratedCircuit(circuitConfig),
+ aInput,
+ aOutput,
+ aSolidOutput,
+ aDuration,
+ aEUt,
+ aHidden);
}
@Override
public boolean addDistilleryRecipe(int circuitConfig, FluidStack aInput, FluidStack aOutput, int aDuration,
- int aEUt, boolean aHidden) {
+ int aEUt, boolean aHidden) {
return addDistilleryRecipe(
- GT_Utility.getIntegratedCircuit(circuitConfig),
- aInput,
- aOutput,
- aDuration,
- aEUt,
- aHidden);
+ GT_Utility.getIntegratedCircuit(circuitConfig),
+ aInput,
+ aOutput,
+ aDuration,
+ aEUt,
+ aHidden);
}
@Override
public boolean addFluidSolidifierRecipe(final ItemStack[] itemInputs, final FluidStack[] fluidInputs,
- final ItemStack[] itemOutputs, final FluidStack[] fluidOutputs, final int EUPerTick,
- final int aDurationInTicks) {
- GT_Recipe.GT_Recipe_Map.sFluidSolidficationRecipes.addRecipe(
- true,
- itemInputs,
- itemOutputs,
- null,
- fluidInputs,
- fluidOutputs,
- aDurationInTicks,
- EUPerTick,
- 0);
+ final ItemStack[] itemOutputs, final FluidStack[] fluidOutputs, final int EUPerTick,
+ final int aDurationInTicks) {
+ GT_Recipe.GT_Recipe_Map.sFluidSolidficationRecipes
+ .addRecipe(true, itemInputs, itemOutputs, null, fluidInputs, fluidOutputs, aDurationInTicks, EUPerTick, 0);
return true;
}
@Override
public boolean addFluidSolidifierRecipe(ItemStack aMold, FluidStack aInput, ItemStack aOutput, int aDuration,
- int aEUt) {
+ int aEUt) {
if ((aMold == null) || (aInput == null) || (aOutput == null)) {
return false;
}
@@ -1858,27 +1830,27 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sFluidSolidficationRecipes.addRecipe(
- true,
- new ItemStack[] { aMold },
- new ItemStack[] { aOutput },
- null,
- new FluidStack[] { aInput },
- null,
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aMold },
+ new ItemStack[] { aOutput },
+ null,
+ new FluidStack[] { aInput },
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
public boolean addFluidSmelterRecipe(ItemStack aInput, ItemStack aRemains, FluidStack aOutput, int aChance,
- int aDuration, int aEUt) {
+ int aDuration, int aEUt) {
return addFluidSmelterRecipe(aInput, aRemains, aOutput, aChance, aDuration, aEUt, false);
}
@Override
public boolean addFluidSmelterRecipe(ItemStack aInput, ItemStack aRemains, FluidStack aOutput, int aChance,
- int aDuration, int aEUt, boolean hidden) {
+ int aDuration, int aEUt, boolean hidden) {
if ((aInput == null) || (aOutput == null)) {
return false;
}
@@ -1892,16 +1864,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sFluidExtractionRecipes.addRecipe(
- true,
- new ItemStack[] { aInput },
- new ItemStack[] { aRemains },
- null,
- new int[] { aChance },
- null,
- new FluidStack[] { aOutput },
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput },
+ new ItemStack[] { aRemains },
+ null,
+ new int[] { aChance },
+ null,
+ new FluidStack[] { aOutput },
+ aDuration,
+ aEUt,
+ 0);
if ((hidden) && (tRecipe != null)) {
tRecipe.mHidden = true;
}
@@ -1910,7 +1882,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addFluidExtractionRecipe(ItemStack aInput, ItemStack aRemains, FluidStack aOutput, int aChance,
- int aDuration, int aEUt) {
+ int aDuration, int aEUt) {
if ((aInput == null) || (aOutput == null)) {
return false;
}
@@ -1924,22 +1896,22 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sFluidExtractionRecipes.addRecipe(
- true,
- new ItemStack[] { aInput },
- new ItemStack[] { aRemains },
- null,
- new int[] { aChance },
- null,
- new FluidStack[] { aOutput },
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput },
+ new ItemStack[] { aRemains },
+ null,
+ new int[] { aChance },
+ null,
+ new FluidStack[] { aOutput },
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
public boolean addFluidCannerRecipe(ItemStack aInput, ItemStack aOutput, FluidStack aFluidInput,
- FluidStack aFluidOutput) {
+ FluidStack aFluidOutput) {
int aDuration = aFluidOutput == null ? aFluidInput.amount / 62 : aFluidOutput.amount / 62;
if (aInput == null || aOutput == null) {
@@ -1952,21 +1924,21 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sFluidCannerRecipes.addRecipe(
- true,
- new ItemStack[] { aInput },
- new ItemStack[] { aOutput },
- null,
- new FluidStack[] { aFluidInput },
- new FluidStack[] { aFluidOutput },
- aDuration,
- 1,
- 0);
+ true,
+ new ItemStack[] { aInput },
+ new ItemStack[] { aOutput },
+ null,
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
+ aDuration,
+ 1,
+ 0);
return true;
}
@Override
public boolean addFluidCannerRecipe(ItemStack aInput, ItemStack aOutput, FluidStack aFluidInput,
- FluidStack aFluidOutput, int aDuration, int aEUt) {
+ FluidStack aFluidOutput, int aDuration, int aEUt) {
if (aInput == null || aOutput == null) {
return false;
}
@@ -1977,21 +1949,21 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sFluidCannerRecipes.addRecipe(
- true,
- new ItemStack[] { aInput },
- new ItemStack[] { aOutput },
- null,
- new FluidStack[] { aFluidInput },
- new FluidStack[] { aFluidOutput },
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput },
+ new ItemStack[] { aOutput },
+ null,
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
public boolean addChemicalBathRecipe(ItemStack aInput, FluidStack aBathingFluid, ItemStack aOutput1,
- ItemStack aOutput2, ItemStack aOutput3, int[] aChances, int aDuration, int aEUt) {
+ ItemStack aOutput2, ItemStack aOutput3, int[] aChances, int aDuration, int aEUt) {
if ((aInput == null) || (aBathingFluid == null) || (aOutput1 == null)) {
return false;
}
@@ -1999,22 +1971,22 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sChemicalBathRecipes.addRecipe(
- true,
- new ItemStack[] { aInput },
- new ItemStack[] { aOutput1, aOutput2, aOutput3 },
- null,
- aChances,
- new FluidStack[] { aBathingFluid },
- null,
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput },
+ new ItemStack[] { aOutput1, aOutput2, aOutput3 },
+ null,
+ aChances,
+ new FluidStack[] { aBathingFluid },
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
public boolean addChemicalBathRecipe(ItemStack aInput, FluidStack aBathingFluid, FluidStack aFluidOutput,
- ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, int[] aChances, int aDuration, int aEUt) {
+ ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, int[] aChances, int aDuration, int aEUt) {
if ((aInput == null) || (aBathingFluid == null) || (aOutput1 == null)) {
return false;
}
@@ -2022,22 +1994,22 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sChemicalBathRecipes.addRecipe(
- true,
- new ItemStack[] { aInput },
- new ItemStack[] { aOutput1, aOutput2, aOutput3 },
- null,
- aChances,
- new FluidStack[] { aBathingFluid },
- new FluidStack[] { aFluidOutput },
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput },
+ new ItemStack[] { aOutput1, aOutput2, aOutput3 },
+ null,
+ aChances,
+ new FluidStack[] { aBathingFluid },
+ new FluidStack[] { aFluidOutput },
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
public boolean addElectromagneticSeparatorRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2,
- ItemStack aOutput3, int[] aChances, int aDuration, int aEUt) {
+ ItemStack aOutput3, int[] aChances, int aDuration, int aEUt) {
if ((aInput == null) || (aOutput1 == null)) {
return false;
}
@@ -2045,16 +2017,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sElectroMagneticSeparatorRecipes.addRecipe(
- true,
- new ItemStack[] { aInput },
- new ItemStack[] { aOutput1, aOutput2, aOutput3 },
- null,
- aChances,
- null,
- null,
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput },
+ new ItemStack[] { aOutput1, aOutput2, aOutput3 },
+ null,
+ aChances,
+ null,
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@@ -2067,21 +2039,21 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sExtractorRecipes.addRecipe(
- true,
- new ItemStack[] { aInput },
- new ItemStack[] { aOutput },
- null,
- null,
- null,
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput },
+ new ItemStack[] { aOutput },
+ null,
+ null,
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
public boolean addPrinterRecipe(ItemStack aInput, FluidStack aFluid, ItemStack aSpecialSlot, ItemStack aOutput,
- int aDuration, int aEUt) {
+ int aDuration, int aEUt) {
if ((aInput == null) || (aFluid == null) || (aOutput == null)) {
return false;
}
@@ -2089,45 +2061,45 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sPrinterRecipes.addRecipe(
- true,
- new ItemStack[] { aInput },
- new ItemStack[] { aOutput },
- aSpecialSlot,
- null,
- new FluidStack[] { aFluid },
- null,
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput },
+ new ItemStack[] { aOutput },
+ aSpecialSlot,
+ null,
+ new FluidStack[] { aFluid },
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
public boolean addAutoclaveRecipe(ItemStack aInput, FluidStack aFluid, ItemStack aOutput, int aChance,
- int aDuration, int aEUt, boolean aCleanroom) {
+ int aDuration, int aEUt, boolean aCleanroom) {
return addAutoclaveRecipe(aInput, aFluid, aOutput, aChance, aDuration, aEUt);
}
@Override
public boolean addAutoclaveRecipe(ItemStack aInput, FluidStack aFluid, ItemStack aOutput, int aChance,
- int aDuration, int aEUt) {
+ int aDuration, int aEUt) {
return addAutoclaveRecipe(aInput, null, aFluid, aOutput, aChance, aDuration, aEUt, false);
}
public boolean addAutoclaveRecipe(ItemStack aInput, ItemStack aCircuit, FluidStack aFluid, ItemStack aOutput,
- int aChance, int aDuration, int aEUt) {
+ int aChance, int aDuration, int aEUt) {
return addAutoclaveRecipe(aInput, aCircuit, aFluid, aOutput, aChance, aDuration, aEUt, false);
}
@Override
public boolean addAutoclaveRecipe(ItemStack aInput, ItemStack aCircuit, FluidStack aFluidIn, ItemStack aOutput,
- int aChance, int aDuration, int aEUt, boolean aCleanroom) {
+ int aChance, int aDuration, int aEUt, boolean aCleanroom) {
return addAutoclaveRecipe(aInput, aCircuit, aFluidIn, null, aOutput, aChance, aDuration, aEUt, aCleanroom);
}
@Override
public boolean addAutoclaveRecipe(ItemStack aInput, ItemStack aCircuit, FluidStack aFluidIn, FluidStack aFluidOut,
- ItemStack aOutput, int aChance, int aDuration, int aEUt, boolean aCleanroom) {
+ ItemStack aOutput, int aChance, int aDuration, int aEUt, boolean aCleanroom) {
if ((aInput == null) || (aFluidIn == null) || (aOutput == null)) {
return false;
}
@@ -2138,28 +2110,28 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
aCleanroom = false;
}
GT_Recipe.GT_Recipe_Map.sAutoclaveRecipes.addRecipe(
- true,
- new ItemStack[] { aInput, aCircuit },
- new ItemStack[] { aOutput },
- null,
- new int[] { aChance },
- new FluidStack[] { aFluidIn },
- new FluidStack[] { aFluidOut },
- aDuration,
- aEUt,
- aCleanroom ? -200 : 0);
+ true,
+ new ItemStack[] { aInput, aCircuit },
+ new ItemStack[] { aOutput },
+ null,
+ new int[] { aChance },
+ new FluidStack[] { aFluidIn },
+ new FluidStack[] { aFluidOut },
+ aDuration,
+ aEUt,
+ aCleanroom ? -200 : 0);
return true;
}
@Override
public boolean addAutoclaveSpaceRecipe(ItemStack aInput, FluidStack aFluid, ItemStack aOutput, int aChance,
- int aDuration, int aEUt, boolean aCleanroom) {
+ int aDuration, int aEUt, boolean aCleanroom) {
return addAutoclaveRecipe(aInput, aFluid, aOutput, aChance, aDuration, aEUt, aCleanroom);
}
@Override
public boolean addAutoclaveSpaceRecipe(ItemStack aInput, ItemStack aCircuit, FluidStack aFluid, ItemStack aOutput,
- int aChance, int aDuration, int aEUt, boolean aCleanroom) {
+ int aChance, int aDuration, int aEUt, boolean aCleanroom) {
if ((aInput == null) || (aFluid == null) || (aOutput == null)) {
return false;
}
@@ -2170,22 +2142,22 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
aCleanroom = false;
}
GT_Recipe.GT_Recipe_Map.sAutoclaveRecipes.addRecipe(
- true,
- new ItemStack[] { aInput, aCircuit },
- new ItemStack[] { aOutput },
- null,
- new int[] { aChance },
- new FluidStack[] { aFluid },
- null,
- aDuration,
- aEUt,
- aCleanroom ? -100 : 0);
+ true,
+ new ItemStack[] { aInput, aCircuit },
+ new ItemStack[] { aOutput },
+ null,
+ new int[] { aChance },
+ new FluidStack[] { aFluid },
+ null,
+ aDuration,
+ aEUt,
+ aCleanroom ? -100 : 0);
return true;
}
@Override
public boolean addAutoclave4Recipe(ItemStack aInput, ItemStack aCircuit, FluidStack aFluidIn, FluidStack aFluidOut,
- ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt, boolean aCleanroom) {
+ ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt, boolean aCleanroom) {
if ((aInput == null) || (aFluidIn == null) || (aOutputs == null)) {
return false;
}
@@ -2196,67 +2168,67 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
aCleanroom = false;
}
GT_Recipe.GT_Recipe_Map.sAutoclaveRecipes.addRecipe(
- true,
- new ItemStack[] { aInput, aCircuit },
- aOutputs,
- null,
- aChances,
- new FluidStack[] { aFluidIn },
- new FluidStack[] { aFluidOut },
- aDuration,
- aEUt,
- aCleanroom ? -200 : 0);
+ true,
+ new ItemStack[] { aInput, aCircuit },
+ aOutputs,
+ null,
+ aChances,
+ new FluidStack[] { aFluidIn },
+ new FluidStack[] { aFluidOut },
+ aDuration,
+ aEUt,
+ aCleanroom ? -200 : 0);
return true;
}
@Deprecated
@Override
public boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4,
- FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, int aDuration, int aEUt) {
+ FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, int aDuration, int aEUt) {
return addMixerRecipe(
- aInput1,
- aInput2,
- aInput3,
- aInput4,
- null,
- null,
- null,
- null,
- null,
- aFluidInput,
- aFluidOutput,
- aOutput,
- aDuration,
- aEUt);
+ aInput1,
+ aInput2,
+ aInput3,
+ aInput4,
+ null,
+ null,
+ null,
+ null,
+ null,
+ aFluidInput,
+ aFluidOutput,
+ aOutput,
+ aDuration,
+ aEUt);
}
@Deprecated
@Override
public boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4,
- ItemStack aInput5, ItemStack aInput6, FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput,
- int aDuration, int aEUt) {
+ ItemStack aInput5, ItemStack aInput6, FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput,
+ int aDuration, int aEUt) {
return addMixerRecipe(
- aInput1,
- aInput2,
- aInput3,
- aInput4,
- aInput5,
- aInput6,
- null,
- null,
- null,
- aFluidInput,
- aFluidOutput,
- aOutput,
- aDuration,
- aEUt);
+ aInput1,
+ aInput2,
+ aInput3,
+ aInput4,
+ aInput5,
+ aInput6,
+ null,
+ null,
+ null,
+ aFluidInput,
+ aFluidOutput,
+ aOutput,
+ aDuration,
+ aEUt);
}
@Deprecated
@Override
public boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4,
- ItemStack aInput5, ItemStack aInput6, ItemStack aInput7, ItemStack aInput8, ItemStack aInput9,
- FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, int aDuration, int aEUt) {
+ ItemStack aInput5, ItemStack aInput6, ItemStack aInput7, ItemStack aInput8, ItemStack aInput9,
+ FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput, int aDuration, int aEUt) {
if (((aInput1 == null) && (aFluidInput == null)) || ((aOutput == null) && (aFluidOutput == null))) {
return false;
}
@@ -2264,23 +2236,23 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
if ((aFluidOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get(
- "mixer",
- aFluidOutput.getFluid()
- .getName(),
- aDuration)) <= 0)) {
+ "mixer",
+ aFluidOutput.getFluid()
+ .getName(),
+ aDuration)) <= 0)) {
return false;
}
GT_Recipe.GT_Recipe_Map.sMixerRecipes.addRecipe(
- true,
- new ItemStack[] { aInput1, aInput2, aInput3, aInput4, aInput5, aInput6, aInput7, aInput8, aInput9 },
- new ItemStack[] { aOutput },
- null,
- null,
- new FluidStack[] { aFluidInput },
- new FluidStack[] { aFluidOutput },
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput1, aInput2, aInput3, aInput4, aInput5, aInput6, aInput7, aInput8, aInput9 },
+ new ItemStack[] { aOutput },
+ null,
+ null,
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
+ aDuration,
+ aEUt,
+ 0);
ItemStack[] itemInputs = { aInput1, aInput2, aInput3, aInput4, aInput5, aInput6, aInput7, aInput8, aInput9 };
ItemStack[] itemOutputs = { aOutput };
FluidStack[] fluidInputs = { aFluidInput, null, null, null, null, null, null, null, null, null };
@@ -2309,34 +2281,25 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
oNumber++;
}
- GT_Recipe.GT_Recipe_Map.sMultiblockMixerRecipes.addRecipe(
- false,
- itemInputs,
- itemOutputs,
- null,
- null,
- fluidInputs,
- fluidOutputs,
- aDuration,
- aEUt,
- 0);
+ GT_Recipe.GT_Recipe_Map.sMultiblockMixerRecipes
+ .addRecipe(false, itemInputs, itemOutputs, null, null, fluidInputs, fluidOutputs, aDuration, aEUt, 0);
return true;
}
@Override
public boolean addMixerRecipe(ItemStack[] ItemInputArray, FluidStack[] FluidInputArray, ItemStack[] ItemOutputArray,
- FluidStack[] FluidOutputArray, int aDuration, int aEUt) {
+ FluidStack[] FluidOutputArray, int aDuration, int aEUt) {
GT_Recipe.GT_Recipe_Map.sMixerRecipes.addRecipe(
- false,
- ItemInputArray,
- ItemOutputArray,
- null,
- null,
- FluidInputArray,
- FluidOutputArray,
- aDuration,
- aEUt,
- 0);
+ false,
+ ItemInputArray,
+ ItemOutputArray,
+ null,
+ null,
+ FluidInputArray,
+ FluidOutputArray,
+ aDuration,
+ aEUt,
+ 0);
List<ItemStack> tItemInputList;
if (ItemInputArray == null) {
tItemInputList = new ArrayList<>(1);
@@ -2352,7 +2315,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
for (int i = 0; i < tItemInputList.size(); i++) {
if (tItemInputList.get(i) != null) {
if (GT_Utility.getFluidForFilledItem(tItemInputList.get(i), true) != null
- || GT_Utility.isCellEmpty(tItemInputList.get(i))) {
+ || GT_Utility.isCellEmpty(tItemInputList.get(i))) {
tFluidInputList.add(GT_Utility.convertCellToFluid(tItemInputList.get(i)));
tItemInputList.set(i, null);
}
@@ -2373,7 +2336,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
for (int i = 0; i < tItemOutputList.size(); i++) {
if (tItemOutputList.get(i) != null) {
if (GT_Utility.getFluidForFilledItem(tItemOutputList.get(i), true) != null
- || GT_Utility.isCellEmpty(tItemOutputList.get(i))) {
+ || GT_Utility.isCellEmpty(tItemOutputList.get(i))) {
tFluidInputList.add(GT_Utility.convertCellToFluid(tItemOutputList.get(i)));
tItemOutputList.set(i, null);
}
@@ -2393,25 +2356,25 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
for (int i = 0; i < tFluidOutputArray.length; i++) tFluidOutputArray[i] = tFluidOutputList.get(i);
GT_Recipe.GT_Recipe_Map.sMultiblockMixerRecipes.addRecipe(
- false,
- tItemInputArray,
- tItemOutputArray,
- null,
- null,
- tFluidInputArray,
- tFluidOutputArray,
- aDuration,
- aEUt,
- 0);
+ false,
+ tItemInputArray,
+ tItemOutputArray,
+ null,
+ null,
+ tFluidInputArray,
+ tFluidOutputArray,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Deprecated
@Override
public boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4,
- ItemStack aInput5, ItemStack aInput6, ItemStack aInput7, ItemStack aInput8, ItemStack aInput9,
- FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3,
- ItemStack aOutput4, int aDuration, int aEUt) {
+ ItemStack aInput5, ItemStack aInput6, ItemStack aInput7, ItemStack aInput8, ItemStack aInput9,
+ FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3,
+ ItemStack aOutput4, int aDuration, int aEUt) {
if (((aInput1 == null) && (aFluidInput == null)) || ((aOutput1 == null) && (aFluidOutput == null))) {
return false;
}
@@ -2419,23 +2382,23 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
if ((aFluidOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get(
- "mixer",
- aFluidOutput.getFluid()
- .getName(),
- aDuration)) <= 0)) {
+ "mixer",
+ aFluidOutput.getFluid()
+ .getName(),
+ aDuration)) <= 0)) {
return false;
}
GT_Recipe.GT_Recipe_Map.sMixerRecipes.addRecipe(
- true,
- new ItemStack[] { aInput1, aInput2, aInput3, aInput4, aInput5, aInput6, aInput7, aInput8, aInput9 },
- new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4 },
- null,
- null,
- new FluidStack[] { aFluidInput },
- new FluidStack[] { aFluidOutput },
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput1, aInput2, aInput3, aInput4, aInput5, aInput6, aInput7, aInput8, aInput9 },
+ new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4 },
+ null,
+ null,
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
+ aDuration,
+ aEUt,
+ 0);
ItemStack[] itemInputs = { aInput1, aInput2, aInput3, aInput4, aInput5, aInput6, aInput7, aInput8, aInput9 };
ItemStack[] itemOutputs = { aOutput1, aOutput2, aOutput3, aOutput4 };
FluidStack[] fluidInputs = { aFluidInput, null, null, null, null, null, null, null, null, null };
@@ -2464,31 +2427,22 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
oNumber++;
}
- GT_Recipe.GT_Recipe_Map.sMultiblockMixerRecipes.addRecipe(
- false,
- itemInputs,
- itemOutputs,
- null,
- null,
- fluidInputs,
- fluidOutputs,
- aDuration,
- aEUt,
- 0);
+ GT_Recipe.GT_Recipe_Map.sMultiblockMixerRecipes
+ .addRecipe(false, itemInputs, itemOutputs, null, null, fluidInputs, fluidOutputs, aDuration, aEUt, 0);
return true;
}
@Deprecated
@Override
public boolean addLaserEngraverRecipe(ItemStack aItemToEngrave, ItemStack aLens, ItemStack aEngravedItem,
- int aDuration, int aEUt) {
+ int aDuration, int aEUt) {
return addLaserEngraverRecipe(aItemToEngrave, aLens, aEngravedItem, aDuration, aEUt, false);
}
@Deprecated
@Override
public boolean addLaserEngraverRecipe(ItemStack aItemToEngrave, ItemStack aLens, ItemStack aEngravedItem,
- int aDuration, int aEUt, boolean aCleanroom) {
+ int aDuration, int aEUt, boolean aCleanroom) {
if ((aItemToEngrave == null) || (aLens == null) || (aEngravedItem == null)) {
return false;
}
@@ -2499,38 +2453,38 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
aCleanroom = false;
}
GT_Recipe.GT_Recipe_Map.sLaserEngraverRecipes.addRecipe(
- true,
- new ItemStack[] { aItemToEngrave, aLens },
- new ItemStack[] { aEngravedItem },
- null,
- null,
- null,
- aDuration,
- aEUt,
- aCleanroom ? -200 : 0);
+ true,
+ new ItemStack[] { aItemToEngrave, aLens },
+ new ItemStack[] { aEngravedItem },
+ null,
+ null,
+ null,
+ aDuration,
+ aEUt,
+ aCleanroom ? -200 : 0);
return true;
}
@Override
public boolean addLaserEngraverRecipe(ItemStack[] ItemInputArray, FluidStack[] FluidInputArray,
- ItemStack[] OutputItemArray, FluidStack[] FluidOutputArray, int aDuration, int aEUt, boolean aCleanroom) {
+ ItemStack[] OutputItemArray, FluidStack[] FluidOutputArray, int aDuration, int aEUt, boolean aCleanroom) {
GT_Recipe.GT_Recipe_Map.sLaserEngraverRecipes.addRecipe(
- false,
- ItemInputArray,
- OutputItemArray,
- null,
- null,
- FluidInputArray,
- FluidOutputArray,
- aDuration,
- aEUt,
- aCleanroom ? -200 : 0);
+ false,
+ ItemInputArray,
+ OutputItemArray,
+ null,
+ null,
+ FluidInputArray,
+ FluidOutputArray,
+ aDuration,
+ aEUt,
+ aCleanroom ? -200 : 0);
return true;
}
@Override
public boolean addFormingPressRecipe(ItemStack aItemToImprint, ItemStack aForm, ItemStack aImprintedItem,
- int aDuration, int aEUt) {
+ int aDuration, int aEUt) {
if ((aItemToImprint == null) || (aForm == null) || (aImprintedItem == null)) {
return false;
}
@@ -2538,34 +2492,26 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sPressRecipes.addRecipe(
- true,
- new ItemStack[] { aItemToImprint, aForm },
- new ItemStack[] { aImprintedItem },
- null,
- null,
- null,
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aItemToImprint, aForm },
+ new ItemStack[] { aImprintedItem },
+ null,
+ null,
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
public boolean addFormingPressRecipe(ItemStack[] ItemInputArray, ItemStack[] OutputItemArray, int aDuration,
- int aEUt) {
+ int aEUt) {
if ((ItemInputArray == null) || (OutputItemArray == null)) {
return false;
}
- GT_Recipe.GT_Recipe_Map.sPressRecipes.addRecipe(
- true,
- ItemInputArray,
- OutputItemArray,
- null,
- null,
- null,
- aDuration,
- aEUt,
- 0);
+ GT_Recipe.GT_Recipe_Map.sPressRecipes
+ .addRecipe(true, ItemInputArray, OutputItemArray, null, null, null, aDuration, aEUt, 0);
return true;
}
@@ -2575,54 +2521,54 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
if ((aDuration = GregTech_API.sRecipeFile.get(
- "fluidheater",
- aOutput.getFluid()
- .getUnlocalizedName(),
- aDuration)) <= 0) {
+ "fluidheater",
+ aOutput.getFluid()
+ .getUnlocalizedName(),
+ aDuration)) <= 0) {
return false;
}
GT_Recipe.GT_Recipe_Map.sFluidHeaterRecipes.addRecipe(
- true,
- new ItemStack[] { aItem },
- null,
- null,
- null,
- new FluidStack[] { aOutput },
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aItem },
+ null,
+ null,
+ null,
+ new FluidStack[] { aOutput },
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
public boolean addFluidHeaterRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, int aDuration,
- int aEUt) {
+ int aEUt) {
if ((aInput == null) || (aOutput == null)) {
return false;
}
if ((aDuration = GregTech_API.sRecipeFile.get(
- "fluidheater",
- aOutput.getFluid()
- .getUnlocalizedName(),
- aDuration)) <= 0) {
+ "fluidheater",
+ aOutput.getFluid()
+ .getUnlocalizedName(),
+ aDuration)) <= 0) {
return false;
}
GT_Recipe.GT_Recipe_Map.sFluidHeaterRecipes.addRecipe(
- true,
- new ItemStack[] { aCircuit },
- null,
- null,
- new FluidStack[] { aInput },
- new FluidStack[] { aOutput },
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aCircuit },
+ null,
+ null,
+ new FluidStack[] { aInput },
+ new FluidStack[] { aOutput },
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
public boolean addSifterRecipe(ItemStack aItemToSift, ItemStack[] aSiftedItems, int[] aChances, int aDuration,
- int aEUt) {
+ int aEUt) {
if ((aItemToSift == null) || (aSiftedItems == null)) {
return false;
}
@@ -2632,16 +2578,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sSifterRecipes.addRecipe(
- true,
- new ItemStack[] { aItemToSift },
- aSiftedItems,
- null,
- aChances,
- null,
- null,
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aItemToSift },
+ aSiftedItems,
+ null,
+ aChances,
+ null,
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
}
@@ -2650,31 +2596,31 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addSifterRecipe(ItemStack[] ItemInputArray, FluidStack[] FluidInputArray,
- ItemStack[] OutputItemArray, FluidStack[] FluidOutputArray, int[] aChances, int aDuration, int aEUt,
- boolean aCleanroom) {
+ ItemStack[] OutputItemArray, FluidStack[] FluidOutputArray, int[] aChances, int aDuration, int aEUt,
+ boolean aCleanroom) {
GT_Recipe.GT_Recipe_Map.sSifterRecipes.addRecipe(
- false,
- ItemInputArray,
- OutputItemArray,
- null,
- aChances,
- FluidInputArray,
- FluidOutputArray,
- aDuration,
- aEUt,
- aCleanroom ? -200 : 0);
+ false,
+ ItemInputArray,
+ OutputItemArray,
+ null,
+ aChances,
+ FluidInputArray,
+ FluidOutputArray,
+ aDuration,
+ aEUt,
+ aCleanroom ? -200 : 0);
return true;
}
@Override
public boolean addArcFurnaceRecipe(ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration,
- int aEUt) {
+ int aEUt) {
return addArcFurnaceRecipe(aInput, aOutputs, aChances, aDuration, aEUt, false);
}
@Override
public boolean addArcFurnaceRecipe(ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt,
- boolean hidden) {
+ boolean hidden) {
if ((aInput == null) || (aOutputs == null)) {
return false;
}
@@ -2684,16 +2630,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe sRecipe = GT_Recipe.GT_Recipe_Map.sArcFurnaceRecipes.addRecipe(
- true,
- new ItemStack[] { aInput },
- aOutputs,
- null,
- aChances,
- new FluidStack[] { Materials.Oxygen.getGas(aDuration) },
- null,
- aDuration,
- Math.max(1, aEUt),
- 0);
+ true,
+ new ItemStack[] { aInput },
+ aOutputs,
+ null,
+ aChances,
+ new FluidStack[] { Materials.Oxygen.getGas(aDuration) },
+ null,
+ aDuration,
+ Math.max(1, aEUt),
+ 0);
if ((hidden) && (sRecipe != null)) {
sRecipe.mHidden = true;
}
@@ -2701,16 +2647,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
if (tMaterial.mPlasma != null) {
int tPlasmaAmount = (int) Math.max(1L, aDuration / (tMaterial.getMass() * 16L));
GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sPlasmaArcFurnaceRecipes.addRecipe(
- true,
- new ItemStack[] { aInput },
- aOutputs,
- null,
- aChances,
- new FluidStack[] { tMaterial.getPlasma(tPlasmaAmount) },
- new FluidStack[] { tMaterial.getGas(tPlasmaAmount) },
- Math.max(1, aDuration / 16),
- Math.max(1, aEUt / 3),
- 0);
+ true,
+ new ItemStack[] { aInput },
+ aOutputs,
+ null,
+ aChances,
+ new FluidStack[] { tMaterial.getPlasma(tPlasmaAmount) },
+ new FluidStack[] { tMaterial.getGas(tPlasmaAmount) },
+ Math.max(1, aDuration / 16),
+ Math.max(1, aEUt / 3),
+ 0);
if ((hidden) && (tRecipe != null)) {
tRecipe.mHidden = true;
}
@@ -2724,7 +2670,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addSimpleArcFurnaceRecipe(ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs,
- int[] aChances, int aDuration, int aEUt) {
+ int[] aChances, int aDuration, int aEUt) {
if ((aInput == null) || (aOutputs == null) || aFluidInput == null) {
return false;
}
@@ -2734,16 +2680,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sArcFurnaceRecipes.addRecipe(
- true,
- new ItemStack[] { aInput },
- aOutputs,
- null,
- aChances,
- new FluidStack[] { aFluidInput },
- null,
- aDuration,
- Math.max(1, aEUt),
- 0);
+ true,
+ new ItemStack[] { aInput },
+ aOutputs,
+ null,
+ aChances,
+ new FluidStack[] { aFluidInput },
+ null,
+ aDuration,
+ Math.max(1, aEUt),
+ 0);
return true;
}
}
@@ -2752,7 +2698,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addPlasmaArcFurnaceRecipe(ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs,
- int[] aChances, int aDuration, int aEUt) {
+ int[] aChances, int aDuration, int aEUt) {
if ((aInput == null) || (aOutputs == null) || aFluidInput == null) {
return false;
}
@@ -2762,16 +2708,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sPlasmaArcFurnaceRecipes.addRecipe(
- true,
- new ItemStack[] { aInput },
- aOutputs,
- null,
- aChances,
- new FluidStack[] { aFluidInput },
- null,
- aDuration,
- Math.max(1, aEUt),
- 0);
+ true,
+ new ItemStack[] { aInput },
+ aOutputs,
+ null,
+ aChances,
+ new FluidStack[] { aFluidInput },
+ null,
+ aDuration,
+ Math.max(1, aEUt),
+ 0);
return true;
}
}
@@ -2780,7 +2726,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addPlasmaArcFurnaceRecipe(ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs,
- FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt) {
+ FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt) {
if ((aInput == null) || (aOutputs == null) || aFluidInput == null) {
return false;
}
@@ -2790,16 +2736,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sPlasmaArcFurnaceRecipes.addRecipe(
- true,
- new ItemStack[] { aInput },
- aOutputs,
- null,
- aChances,
- new FluidStack[] { aFluidInput },
- new FluidStack[] { aFluidOutput },
- aDuration,
- Math.max(1, aEUt),
- 0);
+ true,
+ new ItemStack[] { aInput },
+ aOutputs,
+ null,
+ aChances,
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
+ aDuration,
+ Math.max(1, aEUt),
+ 0);
return true;
}
}
@@ -2808,13 +2754,13 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addPulveriserRecipe(ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration,
- int aEUt) {
+ int aEUt) {
return addPulveriserRecipe(aInput, aOutputs, aChances, aDuration, aEUt, false);
}
@Override
public boolean addPulveriserRecipe(ItemStack aInput, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUt,
- boolean hidden) {
+ boolean hidden) {
if ((aInput == null) || (aOutputs == null)) {
return false;
}
@@ -2824,16 +2770,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sMaceratorRecipes.addRecipe(
- true,
- new ItemStack[] { aInput },
- aOutputs,
- null,
- aChances,
- null,
- null,
- aDuration,
- aEUt,
- 0);
+ true,
+ new ItemStack[] { aInput },
+ aOutputs,
+ null,
+ aChances,
+ null,
+ null,
+ aDuration,
+ aEUt,
+ 0);
if ((hidden) && (tRecipe != null)) {
tRecipe.mHidden = true;
}
@@ -2845,7 +2791,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addPyrolyseRecipe(ItemStack aInput, FluidStack aFluidInput, int intCircuit, ItemStack aOutput,
- FluidStack aFluidOutput, int aDuration, int aEUt) {
+ FluidStack aFluidOutput, int aDuration, int aEUt) {
if (aInput == null) {
return false;
}
@@ -2853,16 +2799,16 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sPyrolyseRecipes.addRecipe(
- false,
- new ItemStack[] { aInput, ItemList.Circuit_Integrated.getWithDamage(0L, intCircuit) },
- new ItemStack[] { aOutput },
- null,
- null,
- new FluidStack[] { aFluidInput },
- new FluidStack[] { aFluidOutput },
- aDuration,
- aEUt,
- 0);
+ false,
+ new ItemStack[] { aInput, ItemList.Circuit_Integrated.getWithDamage(0L, intCircuit) },
+ new ItemStack[] { aOutput },
+ null,
+ null,
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@@ -2874,7 +2820,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addCrackingRecipe(int circuitConfig, FluidStack aInput, FluidStack aInput2, FluidStack aOutput,
- int aDuration, int aEUt) {
+ int aDuration, int aEUt) {
if ((aInput == null && aInput2 == null) || (aOutput == null)) {
return false;
}
@@ -2882,27 +2828,27 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sCrackingRecipes.addRecipe(
- false,
- new ItemStack[] { GT_Utility.getIntegratedCircuit(circuitConfig) },
- null,
- null,
- null,
- new FluidStack[] { aInput, aInput2 },
- new FluidStack[] { aOutput },
- aDuration,
- aEUt,
- 0);
+ false,
+ new ItemStack[] { GT_Utility.getIntegratedCircuit(circuitConfig) },
+ null,
+ null,
+ null,
+ new FluidStack[] { aInput, aInput2 },
+ new FluidStack[] { aOutput },
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
public boolean addAssemblylineRecipe(ItemStack aResearchItem, int aResearchTime, ItemStack[] aInputs,
- FluidStack[] aFluidInputs, ItemStack aOutput, int aDuration, int aEUt) {
+ FluidStack[] aFluidInputs, ItemStack aOutput, int aDuration, int aEUt) {
if ((aResearchItem == null) || (aResearchTime <= 0)
- || (aInputs == null)
- || (aOutput == null)
- || aInputs.length > 15
- || aInputs.length < 4) {
+ || (aInputs == null)
+ || (aOutput == null)
+ || aInputs.length > 15
+ || aInputs.length < 4) {
return false;
}
if ((aDuration = GregTech_API.sRecipeFile.get("assemblingline", aOutput, aDuration)) <= 0) {
@@ -2911,41 +2857,41 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
for (ItemStack tItem : aInputs) {
if (tItem == null) {
GT_FML_LOGGER.info(
- "addAssemblingLineRecipe " + aResearchItem.getDisplayName()
- + " --> "
- + aOutput.getUnlocalizedName()
- + " there is some null item in that recipe");
+ "addAssemblingLineRecipe " + aResearchItem.getDisplayName()
+ + " --> "
+ + aOutput.getUnlocalizedName()
+ + " there is some null item in that recipe");
}
}
GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe(
- false,
- new ItemStack[] { aResearchItem },
- new ItemStack[] { aOutput },
- new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Writes Research result") },
- null,
- null,
- aResearchTime,
- 30,
- -201);
+ false,
+ new ItemStack[] { aResearchItem },
+ new ItemStack[] { aOutput },
+ new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Writes Research result") },
+ null,
+ null,
+ aResearchTime,
+ 30,
+ -201);
GT_Recipe.GT_Recipe_Map.sAssemblylineVisualRecipes.addFakeRecipe(
- false,
- aInputs,
- new ItemStack[] { aOutput },
- new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Reads Research result") },
- aFluidInputs,
- null,
- aDuration,
- aEUt,
- 0,
- false);
+ false,
+ aInputs,
+ new ItemStack[] { aOutput },
+ new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Reads Research result") },
+ aFluidInputs,
+ null,
+ aDuration,
+ aEUt,
+ 0,
+ false);
GT_Recipe_AssemblyLine tRecipe = new GT_Recipe_AssemblyLine(
- aResearchItem,
- aResearchTime,
- aInputs,
- aFluidInputs,
- aOutput,
- aDuration,
- aEUt);
+ aResearchItem,
+ aResearchTime,
+ aInputs,
+ aFluidInputs,
+ aOutput,
+ aDuration,
+ aEUt);
GT_Recipe.GT_Recipe_AssemblyLine.sAssemblylineRecipes.add(tRecipe);
GT_AssemblyLineUtils.addRecipeToCache(tRecipe);
return true;
@@ -2953,12 +2899,12 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addAssemblylineRecipe(ItemStack aResearchItem, int aResearchTime, Object[] aInputs,
- FluidStack[] aFluidInputs, ItemStack aOutput, int aDuration, int aEUt) {
+ FluidStack[] aFluidInputs, ItemStack aOutput, int aDuration, int aEUt) {
if ((aResearchItem == null) || (aResearchTime <= 0)
- || (aInputs == null)
- || (aOutput == null)
- || aInputs.length > 15
- || aInputs.length < 4) {
+ || (aInputs == null)
+ || (aOutput == null)
+ || aInputs.length > 15
+ || aInputs.length < 4) {
return false;
}
if ((aDuration = GregTech_API.sRecipeFile.get("assemblingline", aOutput, aDuration)) <= 0) {
@@ -2990,11 +2936,12 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
try {
// sort the output, so the hash code is stable across launches
tList.sort(
- Comparator.<ItemStack, String>comparing(
- s -> GameRegistry.findUniqueIdentifierFor(s.getItem()).modId)
- .thenComparing(s -> GameRegistry.findUniqueIdentifierFor(s.getItem()).name)
- .thenComparingInt(Items.feather::getDamage)
- .thenComparingInt(s -> s.stackSize));
+ Comparator
+ .<ItemStack, String>comparing(
+ s -> GameRegistry.findUniqueIdentifierFor(s.getItem()).modId)
+ .thenComparing(s -> GameRegistry.findUniqueIdentifierFor(s.getItem()).name)
+ .thenComparingInt(Items.feather::getDamage)
+ .thenComparingInt(s -> s.stackSize));
int tAmount = ((Number) objs[1]).intValue();
List<ItemStack> uList = new ArrayList<>();
for (ItemStack tStack : tList) {
@@ -3012,10 +2959,10 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
}
}
GT_FML_LOGGER.info(
- "addAssemblingLineRecipe " + aResearchItem.getDisplayName()
- + " --> "
- + aOutput.getUnlocalizedName()
- + " there is some null item in that recipe");
+ "addAssemblingLineRecipe " + aResearchItem.getDisplayName()
+ + " --> "
+ + aOutput.getUnlocalizedName()
+ + " there is some null item in that recipe");
}
tPersistentHash = tPersistentHash * 31 + GT_Utility.persistentHash(aResearchItem, true, false);
tPersistentHash = tPersistentHash * 31 + GT_Utility.persistentHash(aOutput, true, false);
@@ -3027,36 +2974,36 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
tPersistentHash = tPersistentHash * 31 + aDuration;
tPersistentHash = tPersistentHash * 31 + aEUt;
GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe(
- false,
- new ItemStack[] { aResearchItem },
- new ItemStack[] { aOutput },
- new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Writes Research result") },
- null,
- null,
- aResearchTime,
- 30,
- -201);
+ false,
+ new ItemStack[] { aResearchItem },
+ new ItemStack[] { aOutput },
+ new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Writes Research result") },
+ null,
+ null,
+ aResearchTime,
+ 30,
+ -201);
GT_Recipe.GT_Recipe_Map.sAssemblylineVisualRecipes.addFakeRecipe(
- false,
- tInputs,
- new ItemStack[] { aOutput },
- new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Reads Research result") },
- aFluidInputs,
- null,
- aDuration,
- aEUt,
- 0,
- tAlts,
- false);
+ false,
+ tInputs,
+ new ItemStack[] { aOutput },
+ new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Reads Research result") },
+ aFluidInputs,
+ null,
+ aDuration,
+ aEUt,
+ 0,
+ tAlts,
+ false);
GT_Recipe_AssemblyLine tRecipe = new GT_Recipe_AssemblyLine(
- aResearchItem,
- aResearchTime,
- tInputs,
- aFluidInputs,
- aOutput,
- aDuration,
- aEUt,
- tAlts);
+ aResearchItem,
+ aResearchTime,
+ tInputs,
+ aFluidInputs,
+ aOutput,
+ aDuration,
+ aEUt,
+ tAlts);
tRecipe.setPersistentHash(tPersistentHash);
GT_Recipe.GT_Recipe_AssemblyLine.sAssemblylineRecipes.add(tRecipe);
GT_AssemblyLineUtils.addRecipeToCache(tRecipe);
@@ -3065,13 +3012,13 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
@Override
public boolean addCircuitAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput,
- int aDuration, int aEUt) {
+ int aDuration, int aEUt) {
return addCircuitAssemblerRecipe(aInputs, aFluidInput, aOutput, aDuration, aEUt, false);
}
@Override
public boolean addCircuitAssemblerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput,
- int aDuration, int aEUt, boolean aCleanroom) {
+ int aDuration, int aEUt, boolean aCleanroom) {
if (this.areItemsAndFluidsBothNull(aInputs, new FluidStack[] { aFluidInput })) {
return false;
@@ -3091,32 +3038,27 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
for (int oreID : OreDictionary.getOreIDs(aOutput)) {
if (OreDictionary.getOreName(oreID)
- .startsWith("circuit")) {
- return this.addCircuitAssemblerRecipeNonOredicted(
- aInputs,
- aFluidInput,
- aOutput,
- aDuration,
- aEUt,
- aCleanroom);
+ .startsWith("circuit")) {
+ return this
+ .addCircuitAssemblerRecipeNonOredicted(aInputs, aFluidInput, aOutput, aDuration, aEUt, aCleanroom);
}
}
GT_Recipe.GT_Recipe_Map.sCircuitAssemblerRecipes.addRecipe(
- true,
- aInputs,
- new ItemStack[] { aOutput },
- null,
- new FluidStack[] { aFluidInput },
- null,
- aDuration,
- aEUt,
- aCleanroom ? -200 : 0);
+ true,
+ aInputs,
+ new ItemStack[] { aOutput },
+ null,
+ new FluidStack[] { aFluidInput },
+ null,
+ aDuration,
+ aEUt,
+ aCleanroom ? -200 : 0);
return true;
}
public boolean addCircuitAssemblerRecipeNonOredicted(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput,
- int aDuration, int aEUt, boolean aCleanroom) {
+ int aDuration, int aEUt, boolean aCleanroom) {
if ((aInputs == null) || (aOutput == null) || aInputs.length > 6 || aInputs.length < 1) {
return false;
}
@@ -3127,42 +3069,42 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
aCleanroom = false;
}
GT_Recipe.GT_Recipe_Map.sCircuitAssemblerRecipes.addRecipe(
- true,
- aInputs,
- new ItemStack[] { aOutput },
- null,
- null,
- new FluidStack[] { aFluidInput },
- null,
- aDuration,
- aEUt,
- aCleanroom ? -200 : 0);
+ true,
+ aInputs,
+ new ItemStack[] { aOutput },
+ null,
+ null,
+ new FluidStack[] { aFluidInput },
+ null,
+ aDuration,
+ aEUt,
+ aCleanroom ? -200 : 0);
return true;
}
@Override
public boolean addNanoForgeRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, ItemStack[] aOutputs,
- FluidStack[] aFluidOutputs, int[] aChances, int aDuration, int aEUt, int aSpecialValue) {
+ FluidStack[] aFluidOutputs, int[] aChances, int aDuration, int aEUt, int aSpecialValue) {
if (aInputs == null || aOutputs == null || aSpecialValue == 0) return false;
GT_Recipe.GT_Recipe_Map.sNanoForge.addRecipe(
- new GT_Recipe(
- false,
- aInputs,
- aOutputs,
- null,
- aChances,
- aFluidInputs,
- aFluidOutputs,
- aDuration,
- aEUt,
- aSpecialValue));
+ new GT_Recipe(
+ false,
+ aInputs,
+ aOutputs,
+ null,
+ aChances,
+ aFluidInputs,
+ aFluidOutputs,
+ aDuration,
+ aEUt,
+ aSpecialValue));
return true;
}
@Override
public boolean addPCBFactoryRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, ItemStack[] aOutputs,
- int aDuration, int aEUt, int aSpecialValue) {
+ int aDuration, int aEUt, int aSpecialValue) {
if (aInputs == null || aFluidInputs == null || aOutputs == null) {
return false;
@@ -3173,52 +3115,42 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
}
GT_Recipe.GT_Recipe_Map.sPCBFactory.addRecipe(
- new GT_Recipe(
- false,
- aInputs,
- aOutputs,
- null,
- null,
- aFluidInputs,
- null,
- aDuration,
- aEUt,
- aSpecialValue));
+ new GT_Recipe(false, aInputs, aOutputs, null, null, aFluidInputs, null, aDuration, aEUt, aSpecialValue));
return true;
}
@Override
public GT_Recipe addIC2ReactorBreederCell(ItemStack input, ItemStack output, boolean reflector, int heatStep,
- int heatMultiplier, int requiredPulses) {
+ int heatMultiplier, int requiredPulses) {
return GT_Recipe.GT_Recipe_Map.sIC2NuclearFakeRecipe.addFakeRecipe(
- input,
- output,
- reflector ? "Neutron reflecting Breeder" : "Heat neutral Breeder",
- String.format("Every %d reactor hull heat", heatStep),
- String.format("increase speed by %d00%%", heatMultiplier),
- String.format("Required pulses: %d", requiredPulses));
+ input,
+ output,
+ reflector ? "Neutron reflecting Breeder" : "Heat neutral Breeder",
+ String.format("Every %d reactor hull heat", heatStep),
+ String.format("increase speed by %d00%%", heatMultiplier),
+ String.format("Required pulses: %d", requiredPulses));
}
@Override
public GT_Recipe addIC2ReactorFuelCell(ItemStack input, ItemStack output, boolean aMox, float aHeat, float aEnergy,
- int aCells) {
+ int aCells) {
// for the mysterious constant 5.0f,
// see ic2.core.block.reactor.tileentity.TileEntityNuclearReactorElectric.getOfferedEnergy
// don't ask, just accept
int pulses = aCells / 2 + 1;
float nukePowerMult = 5.0f * ConfigUtil.getFloat(MainConfig.get(), "balance/energy/generator/nuclear");
return GT_Recipe.GT_Recipe_Map.sIC2NuclearFakeRecipe.addFakeRecipe(
- input,
- output,
- aMox ? "MOX Model" : "Uranium Model",
- "Neutron Pulse: " + aCells,
- aCells == 1 ? String.format("Heat: %.1f * n1 * (n1 + 1)", aHeat / 2f)
- : String.format("Heat: %.1f * (%d + n1) * (%d + n1)", aHeat * aCells / 2f, aCells, aCells + 1),
- String.format(
- "Energy: %.1f + n2 * %.1f EU/t",
- aEnergy * aCells * pulses * nukePowerMult,
- aEnergy * nukePowerMult));
+ input,
+ output,
+ aMox ? "MOX Model" : "Uranium Model",
+ "Neutron Pulse: " + aCells,
+ aCells == 1 ? String.format("Heat: %.1f * n1 * (n1 + 1)", aHeat / 2f)
+ : String.format("Heat: %.1f * (%d + n1) * (%d + n1)", aHeat * aCells / 2f, aCells, aCells + 1),
+ String.format(
+ "Energy: %.1f + n2 * %.1f EU/t",
+ aEnergy * aCells * pulses * nukePowerMult,
+ aEnergy * nukePowerMult));
}
private boolean areItemsAndFluidsBothNull(ItemStack[] items, FluidStack[] fluids) {