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
|
package gregtech.loaders.materialprocessing;
import gregtech.api.GregTech_API;
import gregtech.api.enums.Dyes;
import gregtech.api.enums.GTNH_ExtraMaterials;
import gregtech.api.enums.Materials;
import gregtech.api.enums.TextureSet;
public class ProcessingConfig implements gregtech.api.interfaces.IMaterialHandler {
public ProcessingConfig() {
new GTNH_ExtraMaterials();
Materials.add(this);
}
@Override
public void onMaterialsInit() {
/** This is just left here as an example of how to add new materials. **/
if (false) {
int i = 0;
for (int j = GregTech_API.sMaterialProperties.get("general", "AmountOfCustomMaterialSlots", 16);
i < j;
i++) {
String aID = (i < 10 ? "0" : "") + i;
new Materials(
-1,
TextureSet.SET_METALLIC,
1.0F,
0,
0,
0,
255,
255,
255,
0,
"CustomMat" + aID,
"CustomMat" + aID,
0,
0,
0,
0,
false,
false,
1,
1,
1,
Dyes._NULL,
"custom",
true,
aID);
}
}
}
@Override
public void onComponentInit() {
/** This is just left here as an example of how to add components. **/
/* Enabling specific components:
OrePrefixes.spring.enableComponent(Materials.Cobalt);
OrePrefixes.ingotDouble.enableComponent(Materials.Cobalt);
OrePrefixes.ingotTriple.enableComponent(Materials.Cobalt);
OrePrefixes.ingotQuadruple.enableComponent(Materials.Cobalt);
OrePrefixes.ingotQuintuple.enableComponent(Materials.Cobalt);
OrePrefixes.plateDouble.enableComponent(Materials.Cobalt);
OrePrefixes.plateTriple.enableComponent(Materials.Cobalt);
OrePrefixes.plateQuadruple.enableComponent(Materials.Cobalt);
OrePrefixes.plateQuintuple.enableComponent(Materials.Cobalt);
OrePrefixes.plateDense.enableComponent(Materials.Cobalt); */
}
@Override
public void onComponentIteration(Materials aMaterial) {
/** This is just left here as an example of how to add components. **/
/*Enabling/Disabling components depending on the current Materials values:
if ((aMaterial.mTypes & 0x40) != 0) { //This material can be made into tool heads
OrePrefixes.plateQuadruple.mDisabledItems.remove(aMaterial);
} */
}
}
|