blob: d1db906fd05fcc16da9a6cff617fc981b79a377b (
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
|
package gregtech.nei;
import codechicken.nei.api.IConfigureNEI;
import cpw.mods.fml.common.FMLCommonHandler;
import gregtech.api.enums.ItemList;
import gregtech.api.util.GT_Recipe;
public class NEI_GT_Config
implements IConfigureNEI {
public static boolean sIsAdded = true;
public static GT_NEI_AssLineHandler ALH;
public void loadConfig() {
sIsAdded = false;
for (GT_Recipe.GT_Recipe_Map tMap : GT_Recipe.GT_Recipe_Map.sMappings) {
if (tMap.mNEIAllowed) {
new GT_NEI_DefaultHandler(tMap);
}
}
if (FMLCommonHandler.instance().getEffectiveSide().isClient()) {
ALH = new GT_NEI_AssLineHandler(GT_Recipe.GT_Recipe_Map.sAssemblylineVisualRecipes);
codechicken.nei.api.API.addItemListEntry(ItemList.VOLUMETRIC_FLASK.get(1));
}
sIsAdded = true;
}
public String getName() {
return "GregTech NEI Plugin";
}
public String getVersion() {
return "(5.03a)";
}
}
|