diff options
author | Blood-Asp <bloodasphendrik@gmail.com> | 2015-10-20 00:24:30 +0200 |
---|---|---|
committer | Blood-Asp <bloodasphendrik@gmail.com> | 2015-10-20 00:24:30 +0200 |
commit | 9202e2bfe31b1c38d74fadbc050292e5016de8b3 (patch) | |
tree | a5d45c0544609332c0b5219119329af8e4bee35b /src/main/java/gregtech/nei/NEI_GT_Config.java | |
parent | 9367648dd69c4834c213a050aeae4af0acea1ed2 (diff) | |
parent | 85c804fa112fd1f19c91e45d150a787cfbf0f7a8 (diff) | |
download | GT5-Unofficial-9202e2bfe31b1c38d74fadbc050292e5016de8b3.tar.gz GT5-Unofficial-9202e2bfe31b1c38d74fadbc050292e5016de8b3.tar.bz2 GT5-Unofficial-9202e2bfe31b1c38d74fadbc050292e5016de8b3.zip |
Merge pull request #249 from ShawnBuckley/source-move
Move source directory
Diffstat (limited to 'src/main/java/gregtech/nei/NEI_GT_Config.java')
-rw-r--r-- | src/main/java/gregtech/nei/NEI_GT_Config.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/main/java/gregtech/nei/NEI_GT_Config.java b/src/main/java/gregtech/nei/NEI_GT_Config.java new file mode 100644 index 0000000000..c0d5c80ca1 --- /dev/null +++ b/src/main/java/gregtech/nei/NEI_GT_Config.java @@ -0,0 +1,31 @@ +package gregtech.nei;
+
+import codechicken.nei.api.IConfigureNEI;
+import gregtech.api.util.GT_Recipe;
+
+public class NEI_GT_Config
+ implements IConfigureNEI
+{
+ public static boolean sIsAdded = true;
+
+ 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);
+ }
+ }
+ sIsAdded = true;
+ }
+
+ public String getName()
+ {
+ return "GregTech NEI Plugin";
+ }
+
+ public String getVersion()
+ {
+ return "(5.03a)";
+ }
+}
|