1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
package gregtech.api.util;
import gtPlusPlus.core.util.math.MathUtils;
import net.minecraftforge.fluids.FluidStack;
public class ThermalFuel {
public static void addThermalFuel(
FluidStack aInput1, FluidStack aInput2, FluidStack aOutput1, int euValue, int aSpecialValue) {
GTPP_Recipe x = new GTPP_Recipe(
true,
null,
null,
null,
null,
new FluidStack[] {aInput1, aInput2},
new FluidStack[] {aOutput1},
20, // 1 Tick
euValue, // No Eu produced
aSpecialValue // Magic Number
);
GTPP_Recipe.GTPP_Recipe_Map.sGeoThermalFuels.addRecipe(x);
}
public static void addSteamTurbineFuel(FluidStack aInput1) {
GTPP_Recipe x = new GTPP_Recipe(
true,
null,
null,
null,
null,
new FluidStack[] {aInput1},
null,
20, // 1 Tick
MathUtils.findPercentageOfInt((aInput1.amount / 2), 95), // No Eu produced
0 // Magic Number
);
GTPP_Recipe.GTPP_Recipe_Map.sSteamTurbineFuels.addRecipe(x);
}
}
|