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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
|
package gtPlusPlus.xmod.gregtech.recipes;
import static gregtech.api.enums.GT_Values.RA;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidStack;
import gregtech.api.enums.GT_Values;
import gregtech.api.enums.Materials;
import gregtech.api.recipe.RecipeMaps;
import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_OreDictUnificator;
import gregtech.api.util.GT_Recipe;
import gregtech.api.util.GT_Utility;
import gregtech.api.util.SemiFluidFuelHandler;
import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.api.objects.data.AutoMap;
import gtPlusPlus.api.recipe.GTPPRecipeMaps;
import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.core.material.Material;
import gtPlusPlus.core.material.MaterialGenerator;
import gtPlusPlus.core.recipe.common.CI;
import gtPlusPlus.core.util.data.ArrayUtils;
import gtPlusPlus.core.util.minecraft.ItemUtils;
import gtPlusPlus.core.util.minecraft.MaterialUtils;
import gtPlusPlus.xmod.gregtech.api.enums.GregtechItemList;
import gtPlusPlus.xmod.gregtech.api.interfaces.internal.IGregtech_RecipeAdder;
import gtPlusPlus.xmod.gregtech.common.helpers.FlotationRecipeHandler;
public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
@Override
public boolean addCokeOvenRecipe(final ItemStack aInput1, final ItemStack aInput2, final FluidStack aFluidInput,
final FluidStack aFluidOutput, final ItemStack aOutput, int aDuration, final int aEUt) {
if (aInput1 == null || (aOutput == null && aFluidOutput == null)) {
Logger.WARNING("Something was null, returning false");
return false;
}
if (aOutput != null && (aDuration <= 0)) {
Logger.WARNING("Something was null, returning false");
return false;
}
if (aFluidOutput != null && (aDuration <= 0)) {
Logger.WARNING("Something was null, returning false");
return false;
}
GT_Recipe aSpecialRecipe = new GT_Recipe(
true,
new ItemStack[] { aInput1, aInput2 },
new ItemStack[] { aOutput },
null,
new int[] {},
new FluidStack[] { aFluidInput },
new FluidStack[] { aFluidOutput },
aDuration,
Math.max(1, aEUt),
0);
GTPPRecipeMaps.cokeOvenRecipes.add(aSpecialRecipe);
return true;
}
@Override
public boolean addCokeOvenRecipe(int aCircuit, ItemStack aInput2, FluidStack[] aFluidInputs,
FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int aDuration, int aEUt) {
return addCokeOvenRecipe(
aInput2,
CI.getNumberedCircuit(aCircuit),
aFluidInputs,
aFluidOutputs,
aOutputs,
aDuration,
aEUt);
}
@Override
public boolean addCokeOvenRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack[] aFluidInputs,
FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int aDuration, int aEUt) {
GT_Recipe aSpecialRecipe = new GT_Recipe(
true,
new ItemStack[] { aInput1, aInput2 },
aOutputs,
null,
new int[] {},
aFluidInputs,
aFluidOutputs,
Math.max(1, aDuration),
Math.max(1, aEUt),
0);
GTPPRecipeMaps.cokeOvenRecipes.add(aSpecialRecipe);
return true;
}
@Override
public boolean addMatterFabricatorRecipe(final FluidStack aFluidInput, final FluidStack aFluidOutput,
final int aDuration, final int aEUt) {
if (aFluidOutput == null) {
Logger.WARNING("Something was null, returning false");
return false;
}
GT_Recipe aRecipe = new GT_Recipe(
false,
new ItemStack[] {},
new ItemStack[] {},
null,
new int[] {},
aFluidInput == null ? new FluidStack[] {} : new FluidStack[] { aFluidInput },
new FluidStack[] { aFluidOutput },
aDuration,
aEUt,
0);
GTPPRecipeMaps.multiblockMassFabricatorRecipes.addRecipe(aRecipe);
return true;
}
@Override
public boolean addDehydratorRecipe(final ItemStack[] aInput, final FluidStack aFluidInput,
final FluidStack aFluidOutput, final ItemStack[] aOutputItems, final int[] aChances, int aDuration,
final int aEUt) throws IndexOutOfBoundsException {
if (((aInput == null || aInput.length == 0) && (aFluidInput == null))
|| ((aOutputItems == null || aOutputItems.length == 0) && (aFluidOutput == null))) {
return false;
}
GT_Recipe aSpecialRecipe = new GT_Recipe(
true,
aInput,
aOutputItems,
null,
aChances,
new FluidStack[] { aFluidInput },
new FluidStack[] { aFluidOutput },
Math.max(1, aDuration),
Math.max(1, aEUt),
0);
GTPPRecipeMaps.chemicalDehydratorRecipes.add(aSpecialRecipe);
return true;
}
@Override
public boolean addBlastSmelterRecipe(final ItemStack[] aInput, FluidStack aOutput, final int aChance, int aDuration,
final int aEUt) {
return addBlastSmelterRecipe(
aInput,
(FluidStack) null,
aOutput,
new ItemStack[] {},
new int[] { aChance },
aDuration,
aEUt,
3700);
}
@Override
public boolean addBlastSmelterRecipe(final ItemStack[] aInput, FluidStack aInputFluid, FluidStack aOutput,
final int aChance, int aDuration, final int aEUt) {
return addBlastSmelterRecipe(
aInput,
aInputFluid,
aOutput,
new ItemStack[] {},
new int[] { aChance },
aDuration,
aEUt,
3700);
}
@Override
public boolean addBlastSmelterRecipe(final ItemStack[] aInput, FluidStack[] aInputFluid, FluidStack aOutput,
final int aChance, int aDuration, final int aEUt) {
return addBlastSmelterRecipe(
aInput,
aInputFluid,
aOutput,
new ItemStack[] {},
new int[] { aChance },
aDuration,
aEUt,
3700);
}
@Override
public boolean addBlastSmelterRecipe(final ItemStack[] aInput, FluidStack aInputFluid, FluidStack aOutput,
ItemStack[] aOutputStack, final int[] aChance, int aDuration, final int aEUt) {
return addBlastSmelterRecipe(aInput, aInputFluid, aOutput, aOutputStack, aChance, aDuration, aEUt, 3700);
}
@Override
public boolean addBlastSmelterRecipe(final ItemStack[] aInput, FluidStack[] aInputFluid, FluidStack aOutput,
ItemStack[] aOutputStack, final int[] aChance, int aDuration, final int aEUt) {
return addBlastSmelterRecipe(aInput, aInputFluid, aOutput, aOutputStack, aChance, aDuration, aEUt, 3700);
}
@Override
public boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack aInputFluid, FluidStack aOutput, int aChance,
int aDuration, int aEUt, int aSpecialValue) {
return addBlastSmelterRecipe(
aInput,
aInputFluid,
aOutput,
new ItemStack[] {},
new int[] { aChance },
aDuration,
aEUt,
aSpecialValue);
}
@Override
public boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack[] aInputFluid, FluidStack aOutput, int aChance,
int aDuration, int aEUt, int aSpecialValue) {
return addBlastSmelterRecipe(
aInput,
aInputFluid,
aOutput,
new ItemStack[] {},
new int[] { aChance },
aDuration,
aEUt,
aSpecialValue);
}
@Override
public boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack aInputFluid, FluidStack aOutput,
ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue) {
return addBlastSmelterRecipe(
aInput,
aInputFluid,
aOutput,
aOutputStack,
aChance,
aDuration,
aEUt,
aSpecialValue,
true);
}
@Override
public boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack[] aInputFluid, FluidStack aOutput,
ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue) {
return addBlastSmelterRecipe(
aInput,
aInputFluid,
aOutput,
aOutputStack,
aChance,
aDuration,
aEUt,
aSpecialValue,
true);
}
@Override
public boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack aInputFluid, FluidStack aOutput,
ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue, boolean aOptimizeRecipe) {
return addBlastSmelterRecipe(
aInput,
new FluidStack[] { aInputFluid },
aOutput,
aOutputStack,
aChance,
aDuration,
aEUt,
aSpecialValue,
aOptimizeRecipe);
}
@Override
public boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack[] aInputFluid, FluidStack aOutput,
ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue, boolean aOptimizeRecipe) {
if ((aInput == null) || (aOutput == null)) {
Logger.WARNING("Fail - Input or Output was null.");
return false;
}
if (aOutput.isFluidEqual(Materials.PhasedGold.getMolten(1))) {
aOutput = Materials.VibrantAlloy.getMolten(aOutput.amount);
}
if (aOutput.isFluidEqual(Materials.PhasedIron.getMolten(1))) {
aOutput = Materials.PulsatingIron.getMolten(aOutput.amount);
}
if (aDuration <= 0) {
Logger.WARNING("Recipe did not register.");
return false;
}
aInput = ArrayUtils.removeNulls(aInput);
if (aInput.length <= 1) {
return false;
}
GTPPRecipeMaps.alloyBlastSmelterRecipes.addRecipe(
aOptimizeRecipe,
aInput,
aOutputStack,
null,
aChance,
aInputFluid,
new FluidStack[] { aOutput },
aDuration,
Math.max(1, aEUt),
aSpecialValue);
return true;
}
@Override
public boolean addQuantumTransformerRecipe(ItemStack[] aInput, FluidStack[] aFluidInput, FluidStack[] aFluidOutput,
ItemStack[] aOutputStack, int[] aChances, int aDuration, int aEUt, int aSpecialValue) {
if (aInput == null) {
aInput = new ItemStack[0];
}
if (aFluidInput == null) {
aFluidInput = new FluidStack[0];
}
if (aOutputStack == null) {
aOutputStack = new ItemStack[0];
}
if (aFluidOutput == null) {
aFluidOutput = new FluidStack[0];
}
GTPPRecipeMaps.quantumForceTransformerRecipes.add(
new GT_Recipe(
false,
aInput,
aOutputStack,
null,
aChances,
aFluidInput,
aFluidOutput,
aDuration,
aEUt,
aSpecialValue));
return true;
}
@Override
public boolean addFissionFuel(final FluidStack aInput1, final FluidStack aInput2, final FluidStack aInput3,
final FluidStack aInput4, final FluidStack aInput5, final FluidStack aInput6, final FluidStack aInput7,
final FluidStack aInput8, final FluidStack aInput9, final FluidStack aOutput1, final FluidStack aOutput2,
final int aDuration, final int aEUt) {
return addFissionFuel(
false,
aInput1,
aInput2,
aInput3,
aInput4,
aInput5,
aInput6,
aInput7,
aInput8,
aInput9,
aOutput1,
aOutput2,
aDuration,
aEUt);
}
@Override
public boolean addFissionFuel(final boolean aOptimise, final FluidStack aInput1, final FluidStack aInput2,
final FluidStack aInput3, final FluidStack aInput4, final FluidStack aInput5, final FluidStack aInput6,
final FluidStack aInput7, final FluidStack aInput8, final FluidStack aInput9, final FluidStack aOutput1,
final FluidStack aOutput2, final int aDuration, final int aEUt) {
if ((aInput1 == null) || (aOutput1 == null) || (aDuration < 1) || (aEUt < 1)) {
return false;
}
final FluidStack[] inputs = { aInput1, aInput2, aInput3, aInput4, aInput5, aInput6, aInput7, aInput8, aInput9 };
final FluidStack[] outputs = { aOutput1, aOutput2 };
GTPPRecipeMaps.fissionFuelProcessingRecipes.addRecipe(
aOptimise,
new ItemStack[] {},
new ItemStack[] {},
null,
new int[] {},
inputs,
outputs,
aDuration,
aEUt,
0);
return true;
}
@Override
public boolean addCyclotronRecipe(ItemStack aInputs, FluidStack aFluidInput, ItemStack[] aOutputs,
FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt, int aSpecialValue) {
return addCyclotronRecipe(
new ItemStack[] { aInputs },
aFluidInput,
aOutputs,
aFluidOutput,
aChances,
aDuration,
aEUt,
aSpecialValue);
}
@Override
public boolean addCyclotronRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack[] aOutput,
FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt, int aSpecialValue) {
if (aOutput == null || aOutput.length < 1 || !ItemUtils.checkForInvalidItems(aOutput)) {
Logger.INFO("Bad output for Cyclotron Recipe.");
return false;
}
GT_Recipe aSpecialRecipe = new GT_Recipe(
true,
aInputs,
aOutput,
null,
aChances,
new FluidStack[] { aFluidInput },
new FluidStack[] { aFluidOutput },
Math.max(1, aDuration),
Math.max(1, aEUt),
aSpecialValue);
GTPPRecipeMaps.cyclotronRecipes.add(aSpecialRecipe);
return true;
}
@Override
public boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4,
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;
}
GT_Recipe aSpecialRecipe = new GT_Recipe(
true,
new ItemStack[] { aInput1, aInput2, aInput3, aInput4 },
new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4 },
null,
new int[] {},
new FluidStack[] { aFluidInput },
new FluidStack[] { aFluidOutput },
Math.max(1, aDuration),
Math.max(1, aEUt),
0);
RecipeMaps.mixerRecipes.add(aSpecialRecipe);
return true;
}
@Override
public boolean addMultiblockCentrifugeRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs,
FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick, int aSpecial) {
if (areItemsAndFluidsBothNull(aInputs, aFluidInputs) || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs)
|| aEUtick <= 0) {
return false;
}
if (!ItemUtils.checkForInvalidItems(aInputs, aOutputs)) {
Logger.INFO("[Recipe] Error generating Large Centrifuge recipe.");
Logger.INFO("Inputs: " + ItemUtils.getArrayStackNames(aInputs));
Logger.INFO("Fluid Inputs: " + ItemUtils.getArrayStackNames(aFluidInputs));
Logger.INFO("Outputs: " + ItemUtils.getArrayStackNames(aOutputs));
Logger.INFO("Fluid Outputs: " + ItemUtils.getArrayStackNames(aFluidOutputs));
return false;
}
GT_Recipe aRecipe = new GT_Recipe(
false,
aInputs,
aOutputs,
null,
aChances,
aFluidInputs,
aFluidOutputs,
aDuration,
aEUtick,
aSpecial);
GTPPRecipeMaps.centrifugeNonCellRecipes.addRecipe(aRecipe);
return true;
}
@Override
public boolean addMultiblockElectrolyzerRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs,
FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick, int aSpecial) {
if (areItemsAndFluidsBothNull(aInputs, aFluidInputs) || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs)
|| aEUtick <= 0) {
return false;
}
if (!ItemUtils.checkForInvalidItems(aInputs, aOutputs)) {
Logger.INFO("[Recipe] Error generating Large Electrolyzer recipe.");
Logger.INFO("Inputs: " + ItemUtils.getArrayStackNames(aInputs));
Logger.INFO("Fluid Inputs: " + ItemUtils.getArrayStackNames(aFluidInputs));
Logger.INFO("Outputs: " + ItemUtils.getArrayStackNames(aOutputs));
Logger.INFO("Fluid Outputs: " + ItemUtils.getArrayStackNames(aFluidOutputs));
return false;
}
GT_Recipe aRecipe = new GT_Recipe(
false,
aInputs,
aOutputs,
null,
aChances,
aFluidInputs,
aFluidOutputs,
aDuration,
aEUtick,
aSpecial);
GTPPRecipeMaps.electrolyzerNonCellRecipes.addRecipe(aRecipe);
return true;
}
@Override
public boolean addAdvancedFreezerRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs,
ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick, int aSpecial) {
if (areItemsAndFluidsBothNull(aInputs, aFluidInputs) || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs)
|| aEUtick <= 0) {
return false;
}
if (!ItemUtils.checkForInvalidItems(aInputs, aOutputs)) {
Logger.INFO("[Recipe] Error generating Adv. Vac Freezer recipe.");
Logger.INFO("Inputs: " + ItemUtils.getArrayStackNames(aInputs));
Logger.INFO("Fluid Inputs: " + ItemUtils.getArrayStackNames(aFluidInputs));
Logger.INFO("Outputs: " + ItemUtils.getArrayStackNames(aOutputs));
Logger.INFO("Fluid Outputs: " + ItemUtils.getArrayStackNames(aFluidOutputs));
return false;
}
GT_Recipe aRecipe = new GT_Recipe(
false,
aInputs,
aOutputs,
null,
aChances,
aFluidInputs,
aFluidOutputs,
aDuration,
aEUtick,
aSpecial);
GTPPRecipeMaps.advancedFreezerRecipes.addRecipe(aRecipe);
return false;
}
public boolean addMultiblockMixerRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs,
ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick, int aSpecial) {
if (areItemsAndFluidsBothNull(aInputs, aFluidInputs) || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs)
|| aEUtick <= 0) {
return false;
}
if (!ItemUtils.checkForInvalidItems(aInputs, aOutputs)) {
Logger.INFO("[Recipe] Error generating Large Mixer recipe.");
Logger.INFO("Inputs: " + ItemUtils.getArrayStackNames(aInputs));
Logger.INFO("Fluid Inputs: " + ItemUtils.getArrayStackNames(aFluidInputs));
Logger.INFO("Outputs: " + ItemUtils.getArrayStackNames(aOutputs));
Logger.INFO("Fluid Outputs: " + ItemUtils.getArrayStackNames(aFluidOutputs));
return false;
}
GT_Recipe aRecipe = new GT_Recipe(
false,
aInputs,
aOutputs,
null,
aChances,
aFluidInputs,
aFluidOutputs,
aDuration,
aEUtick,
aSpecial);
GTPPRecipeMaps.mixerNonCellRecipes.addRecipe(aRecipe);
return true;
}
public boolean addMultiblockChemicalDehydratorRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs,
FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick, int aSpecial) {
if (areItemsAndFluidsBothNull(aInputs, aFluidInputs) || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs)
|| aEUtick <= 0) {
return false;
}
if (!ItemUtils.checkForInvalidItems(aInputs, aOutputs)) {
Logger.INFO("[Recipe] Error generating Large Chemical Dehydrator recipe.");
Logger.INFO("Inputs: " + ItemUtils.getArrayStackNames(aInputs));
Logger.INFO("Fluid Inputs: " + ItemUtils.getArrayStackNames(aFluidInputs));
Logger.INFO("Outputs: " + ItemUtils.getArrayStackNames(aOutputs));
Logger.INFO("Fluid Outputs: " + ItemUtils.getArrayStackNames(aFluidOutputs));
return false;
}
GT_Recipe aRecipe = new GT_Recipe(
false,
aInputs,
aOutputs,
null,
aChances,
aFluidInputs,
aFluidOutputs,
aDuration,
aEUtick,
aSpecial);
GTPPRecipeMaps.chemicalDehydratorNonCellRecipes.addRecipe(aRecipe);
return true;
}
@Override
public boolean addSixSlotAssemblingRecipe(ItemStack[] aInputs, FluidStack aInputFluid, ItemStack aOutput1,
int aDuration, int aEUt) {
return RA.addAssemblerRecipe(aInputs, aInputFluid, aOutput1, aDuration, aEUt);
}
@Override
public boolean addAssemblylineRecipe(ItemStack aResearchItem, int aResearchTime, ItemStack[] aInputs,
FluidStack[] aFluidInputs, ItemStack aOutput, int aDuration, int aEUt) {
return RA.addAssemblylineRecipe(aResearchItem, aResearchTime, aInputs, aFluidInputs, aOutput, aDuration, aEUt);
}
@Override
public boolean addAssemblylineRecipe(ItemStack aResearchItem, int aResearchTime, Object[] aInputs,
FluidStack[] aFluidInputs, ItemStack aOutput, int aDuration, int aEUt) {
return RA.addAssemblylineRecipe(aResearchItem, aResearchTime, aInputs, aFluidInputs, aOutput, aDuration, aEUt);
}
@Override
public boolean addChemicalRecipe(ItemStack input1, ItemStack input2, FluidStack inputFluid, FluidStack outputFluid,
ItemStack output, int time, int eu) {
return addChemicalRecipe(input1, input2, inputFluid, outputFluid, output, null, time, eu);
}
@Override
public boolean addChemicalRecipe(ItemStack input1, ItemStack input2, FluidStack inputFluid, FluidStack outputFluid,
ItemStack output, Object object, int time, int eu) {
return RA.addChemicalRecipe(input1, input2, inputFluid, outputFluid, output, time, eu);
}
@Override
public boolean addChemicalRecipe(ItemStack input1, ItemStack input2, FluidStack inputFluid, FluidStack outputFluid,
ItemStack output, ItemStack output2, int time) {
return RA.addChemicalRecipe(input1, input2, inputFluid, outputFluid, output, output2, time);
}
@Override
public boolean addChemicalRecipe(ItemStack input1, ItemStack input2, int aCircuit, FluidStack inputFluid,
FluidStack outputFluid, ItemStack output, ItemStack output2, int time, int eu) {
if (aCircuit < 0 || aCircuit > 24) {
aCircuit = 22;
}
GT_Recipe aSpecialRecipe = new GT_Recipe(
false,
new ItemStack[] { input1, input2 },
new ItemStack[] { output, output2 },
CI.getNumberedCircuit(aCircuit),
new int[] {},
new FluidStack[] { inputFluid },
new FluidStack[] { outputFluid },
time,
eu,
0);
RecipeMaps.chemicalReactorRecipes.add(aSpecialRecipe);
return true;
}
@Override
public boolean addMultiblockChemicalRecipe(ItemStack[] itemStacks, FluidStack[] fluidStacks,
FluidStack[] fluidStacks2, ItemStack[] outputs, int time, int eu) {
return RA.addMultiblockChemicalRecipe(itemStacks, fluidStacks, fluidStacks2, outputs, time, eu);
}
private boolean areItemsAndFluidsBothNull(final ItemStack[] items, final FluidStack[] fluids) {
boolean itemsNull = true;
if (items != null) {
for (final ItemStack itemStack : items) {
if (itemStack != null) {
itemsNull = false;
break;
}
}
}
boolean fluidsNull = true;
if (fluids != null) {
for (final FluidStack fluidStack : fluids) {
if (fluidStack != null) {
fluidsNull = false;
break;
}
}
}
return itemsNull && fluidsNull;
}
@Override
public boolean addCompressorRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration, int aEUt) {
if ((aInput1 == null) || (aOutput1 == null)) {
return false;
}
if (aDuration <= 0) {
return false;
}
RecipeMaps.compressorRecipes.addRecipe(
true,
new ItemStack[] { aInput1 },
new ItemStack[] { aOutput1 },
null,
null,
null,
aDuration,
aEUt,
0);
return true;
}
@Override
public boolean addBrewingRecipe(int aCircuit, FluidStack aInput, FluidStack aOutput, int aTime, int aEu,
boolean aHidden) {
return addBrewingRecipe(CI.getNumberedCircuit(aCircuit), aInput, aOutput, aTime, aEu, aHidden);
}
@Override
public boolean addBrewingRecipe(ItemStack aIngredient, FluidStack aInput, FluidStack aOutput, int aTime, int aEu,
boolean aHidden) {
if (aIngredient == null || aInput == null || aOutput == null) {
return false;
}
GT_Recipe tRecipe = RecipeMaps.brewingRecipes.addRecipe(
false,
new ItemStack[] { aIngredient },
null,
null,
new FluidStack[] { aInput },
new FluidStack[] { aOutput },
aTime,
aEu,
0);
if (aHidden && tRecipe != null) {
tRecipe.mHidden = true;
}
return true;
}
/**
* Lets me add recipes for GT 5.08 & 5.09, since someone broke the method headers.
*/
@Override
public boolean addSmeltingAndAlloySmeltingRecipe(ItemStack aDust, ItemStack aOutput) {
return GT_ModHandler.addSmeltingAndAlloySmeltingRecipe(aDust, aOutput, true);
}
@Override
public boolean addFluidExtractionRecipe(ItemStack input, FluidStack output, int aTime, int aEu) {
return RA.addFluidSmelterRecipe(GT_Utility.copyAmount(1, input), null, output, 10000, aTime, aEu, false);
}
@Override
public boolean addFluidExtractionRecipe(ItemStack aEmpty, ItemStack aRemains, FluidStack aFluid, int aDuration,
int aEU) {
return RA
.addFluidSmelterRecipe(GT_Utility.copyAmount(1, aEmpty), aRemains, aFluid, 10000, aDuration, aEU, false);
}
@Override
public boolean addFluidCannerRecipe(ItemStack aContainer, ItemStack aFullContainer, FluidStack rFluidIn) {
return MaterialGenerator.addFluidCannerRecipe(aContainer, aFullContainer, rFluidIn, null);
}
@Override
public boolean addFluidCannerRecipe(ItemStack aContainer, ItemStack aFullContainer, FluidStack rFluidIn,
FluidStack rFluidOut) {
return MaterialGenerator.addFluidCannerRecipe(aContainer, aFullContainer, rFluidIn, rFluidOut);
}
@Override
public boolean addFluidCannerRecipe(ItemStack aFullContainer, ItemStack container, FluidStack rFluidIn,
FluidStack rFluidOut, int aTime, int aEu) {
return MaterialGenerator.addFluidCannerRecipe(container, aFullContainer, rFluidIn, rFluidOut, aTime, aEu);
}
@Override
public boolean addSemifluidFuel(ItemStack aFuelItem, int aFuelValue) {
return SemiFluidFuelHandler.addSemiFluidFuel(aFuelItem, aFuelValue);
}
@Override
public boolean addSemifluidFuel(FluidStack aFuelItem, int aFuelValue) {
return SemiFluidFuelHandler.addSemiFluidFuel(aFuelItem, aFuelValue);
}
@Override
public boolean addVacuumFurnaceRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput,
FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt, int aLevel) {
if (aInput1 != null && aOutput1 != null) {
return addVacuumFurnaceRecipe(
new ItemStack[] { aInput1, aInput2 },
new FluidStack[] { aFluidInput },
new ItemStack[] { aOutput1, aOutput2 },
new FluidStack[] { aFluidOutput },
aDuration,
aEUt,
aLevel);
} else {
return false;
}
}
@Override
public boolean addVacuumFurnaceRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, ItemStack[] aOutputs,
FluidStack[] aFluidOutputs, int aDuration, int aEUt, int aLevel) {
if (aInputs != null && aOutputs != null) {
GTPPRecipeMaps.vacuumFurnaceRecipes.addRecipe(
false,
aInputs,
aOutputs,
null,
new int[] {},
aFluidInputs,
aFluidOutputs,
aDuration,
aEUt,
aLevel);
return true;
} else {
return false;
}
}
@Override
public boolean addUvLaserRecipe(ItemStack aInput1, ItemStack aOutput, int time, long eu) {
// Generate Special Laser Recipe
GT_Recipe u = new GT_Recipe(
false,
new ItemStack[] { aInput1, GregtechItemList.Laser_Lens_WoodsGlass.get(0), },
new ItemStack[] { aOutput },
null,
new int[] { 10000 },
new FluidStack[] {},
new FluidStack[] {},
time,
(int) eu,
0);
RecipeMaps.laserEngraverRecipes.add(u);
return true;
}
@Override
public boolean addChemicalPlantRecipe(ItemStack[] aInputs, FluidStack[] aInputFluids, ItemStack[] aOutputs,
FluidStack[] aFluidOutputs, int time, long eu, int aTier) {
return addChemicalPlantRecipe(aInputs, aInputFluids, aOutputs, aFluidOutputs, new int[] {}, time, eu, aTier);
}
@Override
public boolean addChemicalPlantRecipe(ItemStack[] aInputs, FluidStack[] aInputFluids, ItemStack[] aOutputs,
FluidStack[] aFluidOutputs, int[] aChances, int time, long eu, int aTier) {
if (aInputs.length > 4 || aInputFluids.length > 4 || aOutputs.length > 6 || aFluidOutputs.length > 3) {
Logger.INFO("Inputs: " + ItemUtils.getArrayStackNames(aInputs));
Logger.INFO("Fluid Inputs: " + ItemUtils.getArrayStackNames(aInputFluids));
Logger.INFO("Outputs: " + ItemUtils.getArrayStackNames(aOutputs));
Logger.INFO("Fluid Outputs: " + ItemUtils.getArrayStackNames(aFluidOutputs));
CORE.crash();
}
GTPPRecipeMaps.chemicalPlantRecipes
.addRecipe(false, aInputs, aOutputs, null, aChances, aInputFluids, aFluidOutputs, time, (int) eu, aTier);
return true;
}
@Override
public boolean addBlastRecipe(ItemStack[] aInputs, FluidStack[] aInputFluids, ItemStack[] aOutputs,
FluidStack[] aFluidOutputs, int time, long eu, int aHeat) {
GT_Recipe aSpecialRecipe = new GT_Recipe(
false,
aInputs,
aOutputs,
null,
new int[] {},
aInputFluids,
aFluidOutputs,
time,
(int) eu,
aHeat);
RecipeMaps.blastFurnaceRecipes.add(aSpecialRecipe);
return true;
}
@Override
public boolean addPyrolyseRecipe(ItemStack aInput, FluidStack aFluidInput, int intCircuit, ItemStack aOutput,
FluidStack aFluidOutput, int aDuration, int aEUt) {
return RA.addPyrolyseRecipe(aInput, aFluidInput, intCircuit, aOutput, aFluidOutput, aDuration, aEUt);
}
@Override
public boolean addDistilleryRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput,
ItemStack aSolidOutput, int aDuration, int aEUt, boolean aHidden) {
if (aInput != null && aOutput != null) {
if (aDuration <= 0) {
return false;
} else {
GT_Recipe tRecipe = RecipeMaps.distilleryRecipes.addRecipe(
true,
new ItemStack[] { aCircuit },
new ItemStack[] { aSolidOutput },
null,
new FluidStack[] { aInput },
new FluidStack[] { aOutput },
aDuration,
aEUt,
0);
if (aHidden && tRecipe != null) {
tRecipe.mHidden = true;
}
return true;
}
} else {
return false;
}
}
@Override
public boolean addExtractorRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt) {
return addExtractorRecipe(aInput, aOutput, 10000, aDuration, aEUt);
}
@Override
public boolean addExtractorRecipe(ItemStack aInput, ItemStack aOutput, int aChance, int aDuration, int aEUt) {
if (aInput != null && aOutput != null) {
GT_Recipe aRecipe = new GT_Recipe(
false,
new ItemStack[] { aInput.copy() },
new ItemStack[] { aOutput.copy() },
null,
new int[] { aChance },
null,
null,
aDuration,
aEUt,
0);
RecipeMaps.extractorRecipes.add(aRecipe);
return true;
} else {
return false;
}
}
@Override
public boolean addPulverisationRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2,
ItemStack aOutput3) {
aOutput1 = GT_OreDictUnificator.get(true, aOutput1);
aOutput2 = GT_OreDictUnificator.get(true, aOutput2);
aOutput3 = GT_OreDictUnificator.get(true, aOutput3);
if (GT_Utility.isStackInvalid(aInput) || GT_Utility.isStackInvalid(aOutput1)) {
return false;
}
if (GT_Utility.getContainerItem(aInput, false) == null) {
GT_Utility.addSimpleIC2MachineRecipe(aInput, GT_ModHandler.getMaceratorRecipeList(), null, aOutput1);
GT_Values.RA.addPulveriserRecipe(
aInput,
new ItemStack[] { aOutput1, aOutput2, aOutput3 },
new int[] { 10000, 10000, 10000 },
400,
2);
}
return true;
}
@Override
public boolean addMillingRecipe(Materials aMat, int aEU) {
return addMillingRecipe(MaterialUtils.generateMaterialFromGtENUM(aMat), aEU);
}
@Override
public boolean addMillingRecipe(Material aMat, int aEU) {
ItemStack aOreStack = aMat.getOre(16);
ItemStack aCrushedStack = aMat.getCrushed(16);
ItemStack aMilledStackOres1 = aMat.getMilled(64);
ItemStack aMilledStackCrushed1 = aMat.getMilled(32);
ItemStack aMilledStackOres2 = aMat.getMilled(48);
ItemStack aMilledStackCrushed2 = aMat.getMilled(16);
ItemStack aMillingBall_Alumina = GregtechItemList.Milling_Ball_Alumina.get(0);
ItemStack aMillingBall_Soapstone = GregtechItemList.Milling_Ball_Soapstone.get(0);
// Inputs
ItemStack[] aInputsOre1 = new ItemStack[] { CI.getNumberedCircuit(10), aOreStack, aMillingBall_Alumina };
ItemStack[] aInputsOre2 = new ItemStack[] { CI.getNumberedCircuit(11), aOreStack, aMillingBall_Soapstone };
ItemStack[] aInputsCrushed1 = new ItemStack[] { CI.getNumberedCircuit(10), aCrushedStack,
aMillingBall_Alumina };
ItemStack[] aInputsCrushed2 = new ItemStack[] { CI.getNumberedCircuit(11), aCrushedStack,
aMillingBall_Soapstone };
// Outputs
ItemStack[] aOutputsOre1 = new ItemStack[] { aMilledStackOres1 };
ItemStack[] aOutputsOre2 = new ItemStack[] { aMilledStackOres2 };
ItemStack[] aOutputsCrushed1 = new ItemStack[] { aMilledStackCrushed1 };
ItemStack[] aOutputsCrushed2 = new ItemStack[] { aMilledStackCrushed2 };
ItemStack[][] aInputArray = new ItemStack[][] { aInputsOre1, aInputsOre2, aInputsCrushed1, aInputsCrushed2 };
ItemStack[][] aOutputArray = new ItemStack[][] { aOutputsOre1, aOutputsOre2, aOutputsCrushed1,
aOutputsCrushed2 };
int[] aTime = new int[] { 2400, 3000, 1200, 1500 };
for (int i = 0; i < 4; i++) {
GT_Recipe aOreRecipe = new GT_Recipe(
false,
aInputArray[i],
aOutputArray[i],
null,
new int[] {},
null,
null,
aTime[i],
aEU,
0);
GTPPRecipeMaps.millingRecipes.add(aOreRecipe);
}
return true;
}
@Override
public boolean addFlotationRecipe(Materials aMat, ItemStack aXanthate, FluidStack[] aInputFluids,
FluidStack[] aOutputFluids, int aTime, int aEU) {
return addFlotationRecipe(
MaterialUtils.generateMaterialFromGtENUM(aMat),
aXanthate,
aInputFluids,
aOutputFluids,
aTime,
aEU);
}
@Override
public boolean addFlotationRecipe(Material aMat, ItemStack aXanthate, FluidStack[] aInputFluids,
FluidStack[] aOutputFluids, int aTime, int aEU) {
FlotationRecipeHandler.registerOreType(aMat);
GT_Recipe aRecipe = new GT_Recipe(
false,
new ItemStack[] { ItemUtils.getSimpleStack(aXanthate, 32), aMat.getMilled(64), aMat.getMilled(64),
aMat.getMilled(64), aMat.getMilled(64), },
new ItemStack[] {},
null,
new int[] {},
aInputFluids,
aOutputFluids,
aTime,
aEU,
0);
GTPPRecipeMaps.flotationCellRecipes.add(aRecipe);
return true;
}
@Override
public boolean addpackagerRecipe(ItemStack aRecipeType, ItemStack aSmallDust, ItemStack aTinyDust,
ItemStack aOutputStack1) {
AutoMap<Boolean> aResults = new AutoMap<>();
// Dust 1
aResults.put(
GT_Values.RA.addBoxingRecipe(GT_Utility.copyAmount(4L, aSmallDust), aRecipeType, aOutputStack1, 100, 4));
// Dust 2
aResults.put(
GT_Values.RA.addBoxingRecipe(GT_Utility.copyAmount(9L, aTinyDust), aRecipeType, aOutputStack1, 100, 4));
for (boolean b : aResults) {
if (!b) {
return false;
}
}
return true;
}
@Override
public boolean addFuelForRTG(ItemStack aFuelPellet, int aFuelDays, int aVoltage) {
GTPPRecipeMaps.rtgFuels.addRecipe(
true,
new ItemStack[] { aFuelPellet },
new ItemStack[] {},
null,
null,
null,
0,
aVoltage,
aFuelDays);
return true;
}
@Override
public boolean addColdTrapRecipe(int aCircuit, ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs,
int[] aChances, FluidStack aFluidOutput, int aTime, int aEU) {
GT_Recipe aRecipe = new GT_Recipe(
false,
new ItemStack[] { CI.getNumberedAdvancedCircuit(aCircuit), aInput },
aOutputs,
null,
aChances,
new FluidStack[] { aFluidInput },
new FluidStack[] { aFluidOutput },
aTime,
aEU,
0);
GTPPRecipeMaps.coldTrapRecipes.add(aRecipe);
return true;
}
@Override
public boolean addReactorProcessingUnitRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput,
ItemStack[] aOutputs, int[] aChances, FluidStack aFluidOutput, int aTime, int aEU) {
GT_Recipe aRecipe = new GT_Recipe(
false,
new ItemStack[] { aInput1, aInput2 },
aOutputs,
null,
aChances,
new FluidStack[] { aFluidInput },
new FluidStack[] { aFluidOutput },
aTime,
aEU,
0);
GTPPRecipeMaps.reactorProcessingUnitRecipes.add(aRecipe);
return true;
}
public boolean addNuclearSaltProcessingPlantRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs,
FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick, int aSpecial) {
if (areItemsAndFluidsBothNull(aInputs, aFluidInputs) || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs)
|| aEUtick <= 0) {
return false;
}
if (!ItemUtils.checkForInvalidItems(aInputs, aOutputs)) {
Logger.INFO("[Recipe] Error generating Salt Plant recipe.");
Logger.INFO("Inputs: " + ItemUtils.getArrayStackNames(aInputs));
Logger.INFO("Fluid Inputs: " + ItemUtils.getArrayStackNames(aFluidInputs));
Logger.INFO("Outputs: " + ItemUtils.getArrayStackNames(aOutputs));
Logger.INFO("Fluid Outputs: " + ItemUtils.getArrayStackNames(aFluidOutputs));
return false;
}
GT_Recipe aRecipe = new GT_Recipe(
false,
aInputs,
aOutputs,
null,
aChances,
aFluidInputs,
aFluidOutputs,
aDuration,
aEUtick,
aSpecial);
GTPPRecipeMaps.nuclearSaltProcessingPlantRecipes.addRecipe(aRecipe);
return true;
}
@Override
public boolean addFluidHeaterRecipe(ItemStack aInput, FluidStack aFluidInput, FluidStack aOutput, int aDuration,
int aEUt) {
if ((aInput == null && aFluidInput == null) || aOutput == null) {
return false;
}
RecipeMaps.fluidHeaterRecipes.addRecipe(
true,
new ItemStack[] { aInput },
null,
null,
new FluidStack[] { aFluidInput },
new FluidStack[] { aOutput },
aDuration,
aEUt,
0);
return true;
}
@Override
public boolean addVacuumFreezerRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt) {
if (aInput == null || aOutput == null) {
return false;
}
GT_Recipe aRecipe = new GT_Recipe(
false,
new ItemStack[] { aInput },
new ItemStack[] { aOutput },
null,
new int[] { 10000 },
new FluidStack[] {},
new FluidStack[] {},
aDuration,
aEUt,
0);
RecipeMaps.vacuumFreezerRecipes.add(aRecipe);
return true;
}
@Override
public boolean addMolecularTransformerRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt) {
if (aInput == null || aOutput == null) {
return false;
}
GT_Recipe aRecipe = new GT_Recipe(
false,
new ItemStack[] { aInput },
new ItemStack[] { aOutput },
null,
new int[] { 10000 },
new FluidStack[] {},
new FluidStack[] {},
aDuration,
aEUt,
0);
GTPPRecipeMaps.molecularTransformerRecipes.add(aRecipe);
return true;
}
@Override
public boolean addMolecularTransformerRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt,
int aAmps) {
return addMolecularTransformerRecipe(aInput, aOutput, aDuration, aEUt);
}
}
|