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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
|
package gtPlusPlus.xmod.gregtech.loaders;
import gregtech.api.enums.GT_Values;
import gregtech.api.enums.ItemList;
import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.core.material.Material;
public class RecipeGen_Fluids implements Runnable{
final Material toGenerate;
public RecipeGen_Fluids(final Material M){
this.toGenerate = M;
}
@Override
public void run() {
generateRecipes(this.toGenerate);
}
public static void generateRecipes(final Material material){
generateRecipes(material, false);
}
public static void generateRecipes(final Material material, final boolean disableOptional){
//Melting Shapes to fluid
if (!material.getFluid(1).getUnlocalizedName().toLowerCase().contains("plasma")){
if (!material.requiresBlastFurnace()) {
//Ingot
if (GT_Values.RA.addFluidExtractionRecipe(material.getIngot(1), //Input
null, //Input 2
material.getFluid(144), //Fluid Output
0, //Chance
1*20, //Duration
16 //Eu Tick
)){
Logger.WARNING("144l fluid extractor from 1 ingot Recipe: "+material.getLocalizedName()+" - Success");
}
else {
Logger.WARNING("144l fluid extractor from 1 ingot Recipe: "+material.getLocalizedName()+" - Failed");
}
//Plate
if (GT_Values.RA.addFluidExtractionRecipe(material.getPlate(1), //Input
null, //Input 2
material.getFluid(144), //Fluid Output
0, //Chance
1*20, //Duration
16 //Eu Tick
)){
Logger.WARNING("144l fluid extractor from 1 plate Recipe: "+material.getLocalizedName()+" - Success");
}
else {
Logger.WARNING("144l fluid extractor from 1 plate Recipe: "+material.getLocalizedName()+" - Failed");
}
//Double Plate
if (GT_Values.RA.addFluidExtractionRecipe(material.getPlateDouble(1), //Input
null, //Input 2
material.getFluid(288), //Fluid Output
0, //Chance
1*20, //Duration
16 //Eu Tick
)){
Logger.WARNING("144l fluid extractor from 1 double plate Recipe: "+material.getLocalizedName()+" - Success");
}
else {
Logger.WARNING("144l fluid extractor from 1 double plate Recipe: "+material.getLocalizedName()+" - Failed");
}
//Nugget
if (GT_Values.RA.addFluidExtractionRecipe(material.getNugget(1), //Input
null, //Input 2
material.getFluid(16), //Fluid Output
0, //Chance
16, //Duration
8 //Eu Tick
)){
Logger.WARNING("16l fluid extractor from 1 nugget Recipe: "+material.getLocalizedName()+" - Success");
}
else {
Logger.WARNING("16l fluid extractor from 1 nugget Recipe: "+material.getLocalizedName()+" - Failed");
}
//Block
if (GT_Values.RA.addFluidExtractionRecipe(material.getBlock(1), //Input
null, //Input 2
material.getFluid(144*9), //Fluid Output
0, //Chance
288, //Duration
16 //Eu Tick
)){
Logger.WARNING((144*9)+"l fluid extractor from 1 block Recipe: "+material.getLocalizedName()+" - Success");
}
else {
Logger.WARNING((144*9)+"l fluid extractor from 1 block Recipe: "+material.getLocalizedName()+" - Failed");
}
}
//Making Shapes from fluid
//Ingot
if (GT_Values.RA.addFluidSolidifierRecipe(
ItemList.Shape_Mold_Ingot.get(0), //Item Shape
material.getFluid(144), //Fluid Input
material.getIngot(1), //output
32, //Duration
8 //Eu Tick
)){
Logger.WARNING("144l fluid molder for 1 ingot Recipe: "+material.getLocalizedName()+" - Success");
}
else {
Logger.WARNING("144l fluid molder for 1 ingot Recipe: "+material.getLocalizedName()+" - Failed");
}
//Plate
if (GT_Values.RA.addFluidSolidifierRecipe(
ItemList.Shape_Mold_Plate.get(0), //Item Shape
material.getFluid(144), //Fluid Input
material.getPlate(1), //output
32, //Duration
8 //Eu Tick
)){
Logger.WARNING("144l fluid molder for 1 plate Recipe: "+material.getLocalizedName()+" - Success");
}
else {
Logger.WARNING("144l fluid molder for 1 plate Recipe: "+material.getLocalizedName()+" - Failed");
}
//Nugget
if (GT_Values.RA.addFluidSolidifierRecipe(
ItemList.Shape_Mold_Nugget.get(0), //Item Shape
material.getFluid(16), //Fluid Input
material.getNugget(1), //output
16, //Duration
4 //Eu Tick
)){
Logger.WARNING("16l fluid molder for 1 nugget Recipe: "+material.getLocalizedName()+" - Success");
}
else {
Logger.WARNING("16l fluid molder for 1 nugget Recipe: "+material.getLocalizedName()+" - Failed");
}
//Gears
if (GT_Values.RA.addFluidSolidifierRecipe(
ItemList.Shape_Mold_Gear.get(0), //Item Shape
material.getFluid(576), //Fluid Input
material.getGear(1), //output
128, //Duration
8 //Eu Tick
)){
Logger.WARNING("576l fluid molder for 1 gear Recipe: "+material.getLocalizedName()+" - Success");
}
else {
Logger.WARNING("576l fluid molder for 1 gear Recipe: "+material.getLocalizedName()+" - Failed");
}
//Blocks
if (GT_Values.RA.addFluidSolidifierRecipe(
ItemList.Shape_Mold_Block.get(0), //Item Shape
material.getFluid(144*9), //Fluid Input
material.getBlock(1), //output
288, //Duration
16 //Eu Tick
)){
Logger.WARNING((144*9)+"l fluid molder from 1 block Recipe: "+material.getLocalizedName()+" - Success");
}
else {
Logger.WARNING((144*9)+"l fluid molder from 1 block Recipe: "+material.getLocalizedName()+" - Failed");
}
}
}
}
|