blob: aca6dd566215dfba688b6b459b667d9124a932a8 (
plain)
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
|
package gtPlusPlus.nei;
import gregtech.api.util.CustomRecipeMap;
import gregtech.api.util.Recipe_GT.Gregtech_Recipe_Map;
import codechicken.nei.api.IConfigureNEI;
public class NEI_GT_Config
implements IConfigureNEI {
public static boolean sIsAdded = true;
@Override
public synchronized void loadConfig() {
sIsAdded = false;
for (final CustomRecipeMap tMap : gregtech.api.util.CustomRecipeMap.sMappings) {
if (tMap.mNEIAllowed) {
new GT_NEI_DefaultHandler(tMap);
}
}
for (final Gregtech_Recipe_Map tMap : gregtech.api.util.Recipe_GT.Gregtech_Recipe_Map.sMappings) {
if (tMap.mNEIAllowed) {
new GT_NEI_MultiBlockHandler(tMap);
}
}
sIsAdded = true;
}
@Override
public String getName() {
return "GT++ NEI Plugin";
}
@Override
public String getVersion() {
return "(1.01)";
}
}
|