blob: 2a7ef9bc39f3868feba0c3e8d986aedb74de6735 (
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
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
|
package gtPlusPlus.core.lib;
import static gtPlusPlus.core.lib.CORE.*;
import cpw.mods.fml.common.Loader;
import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.core.lib.CORE.ConfigSwitches;
import gtPlusPlus.xmod.gregtech.api.enums.GregtechTextures;
import gtPlusPlus.xmod.gregtech.recipes.GregtechRecipeAdder;
public class LoadedMods {
//Initialize Variables
public static boolean Gregtech = false;
public static boolean PlayerAPI = false;
public static boolean BuildCraft = false;
public static boolean EnderIO = false;
public static boolean Big_Reactors = false;
public static boolean IndustrialCraft2 = false;
public static boolean IndustrialCraft2Classic = false;
public static boolean Simply_Jetpacks = false;
public static boolean RFTools = false;
public static boolean Thaumcraft = false;
public static boolean Baubles = false;
public static boolean Extra_Utils = false;
public static boolean PneumaticCraft = false;
public static boolean MorePlanets = false;
public static boolean ForbiddenMagic = false;
public static boolean CompactWindmills = false;
public static boolean Railcraft = false;
public static boolean ImmersiveEngineering = false;
public static boolean Growthcraft = false;
public static boolean CoFHCore = false;
public static boolean Forestry = false;
public static boolean MagicBees = false;
public static boolean ExtraBees = false;
public static boolean Psychedelicraft = false;
public static boolean MiscUtils = true; //Dummy For MetaData Lookups in MT Wrapper
public static boolean ThermalFoundation = false;
public static boolean IHL = false;
public static boolean OpenComputers = false; //OpenComputers
public static boolean Computronics = false; //computronics
public static boolean DreamCraft = false; //GT: New Horizons
public static boolean BeyondRealityCore = false; //Beyond Reality - Probably Classic
public static boolean BiomesOPlenty = false;
public static boolean PamsHarvestcraft = false;
public static boolean GalacticraftCore = false;
public static boolean Mekanism = false;
public static boolean RedTech = false; //RedMage's Mod
public static boolean TecTech = false; //Technus' Mod
public static boolean TiCon = false;
public static boolean StevesCarts = false;
public static boolean Witchery = false;
private static int totalMods;
@SuppressWarnings("deprecation")
public static void checkLoaded(){
Logger.INFO("Looking for optional mod prereqs.");
if (Loader.isModLoaded("gregtech") ){
Gregtech = true;
Logger.INFO("Components enabled for: Gregtech");
if (Gregtech){
try {
CORE.sRecipeAdder = CORE.RA = new GregtechRecipeAdder();
Logger.INFO("Created Gregtech recipe handler.");
GregtechTextures.BlockIcons.VOID.name();
GregtechTextures.ItemIcons.VOID.name();
Logger.INFO("Created Gregtech texture handler.");
} catch (final NullPointerException e){
Logger.INFO("Could NOT create a Gregtech recipe handler.");
}
}
totalMods++;
}
if (Loader.isModLoaded("dreamcraft")){
DreamCraft = true;
GTNH = true;
Logger.INFO("Components enabled for: DreamCraft");
Logger.INFO("Components enabled for: GT: New Horizons");
totalMods++;
}
if (Loader.isModLoaded("beyondrealitycore")){
BeyondRealityCore = true;
BRC = true;
Logger.INFO("Components enabled for: Beyond Reality");
totalMods++;
}
if (Loader.isModLoaded("PlayerAPI")){
PlayerAPI = true;
Logger.INFO("Components enabled for: PlayerAPI");
totalMods++;
}
if (Loader.isModLoaded("TConstruct")){
TiCon = true;
Logger.INFO("Components enabled for: Tinkers Construct");
totalMods++;
}
if (Loader.isModLoaded("BuildCraft")){
BuildCraft = true;
Logger.INFO("Components enabled for: BuildCraft");
totalMods++;
}
if ((Loader.isModLoaded("EnderIO")) && !ConfigSwitches.disableEnderIOIntegration){
EnderIO = true;
Logger.INFO("Components enabled for: EnderIO");
totalMods++;
}
if (Loader.isModLoaded("BigReactors")){
Big_Reactors = true;
Logger.INFO("Components enabled for: Big Reactors");
totalMods++;
}
if (Loader.isModLoaded("IC2")){
IndustrialCraft2 = true;
Logger.INFO("Components enabled for: IndustrialCraft2");
totalMods++;
}
if (Loader.isModLoaded("IC2-Classic-Spmod")){
IndustrialCraft2Classic = true;
Logger.INFO("Components enabled for: IndustrialCraft2-Classic");
totalMods++;
}
if (Loader.isModLoaded("simplyjetpacks")){
Simply_Jetpacks = true;
Logger.INFO("Components enabled for: Simply Jetpacks");
totalMods++;
}
if (Loader.isModLoaded("rftools")){
RFTools = true;
Logger.INFO("Components enabled for: RFTools");
totalMods++;
}
if (Loader.isModLoaded("StevesCarts")){
StevesCarts = true;
Logger.INFO("Components enabled for: StevesCarts");
totalMods++;
}
if (Loader.isModLoaded("Thaumcraft")){
Thaumcraft = true;
Logger.INFO("Components enabled for: Thaumcraft");
totalMods++;
}
if (Loader.isModLoaded("BiomesOPlenty")){
BiomesOPlenty = true;
Logger.INFO("Components enabled for: BiomesOPlenty");
totalMods++;
}
if (Loader.isModLoaded("ExtraUtilities")){
Extra_Utils = true;
Logger.INFO("Components enabled for: Extra_Utils");
totalMods++;
}
if (Loader.isModLoaded("harvestcraft")){
PamsHarvestcraft = true;
Logger.INFO("Components enabled for: PamsHarvestcraft");
totalMods++;
}
if (Loader.isModLoaded("PneumaticCraft")){
PneumaticCraft = true;
Logger.INFO("Components enabled for: PneumaticCraft");
totalMods++;
}
if (Loader.isModLoaded("MorePlanet")){
MorePlanets = true;
Logger.INFO("Components enabled for: MorePlanets");
totalMods++;
}
if (Loader.isModLoaded("ForbiddenMagic")){
ForbiddenMagic = true;
Logger.INFO("Components enabled for: ForbiddenMagic");
totalMods++;
}
if (Loader.isModLoaded("CompactWindmills")){
CompactWindmills = true;
Logger.INFO("Components enabled for: CompactWindmills");
totalMods++;
}
if (Loader.isModLoaded("Railcraft")){
Railcraft = true;
Logger.INFO("Components enabled for: Railcraft");
totalMods++;
}
if (Loader.isModLoaded("Mekanism")){
Mekanism = true;
Logger.INFO("Components enabled for: Mekanism - This feature is not configurable and balances Mekanism to suit GT.");
totalMods++;
}
if (Loader.isModLoaded("Growthcraft")){
Logger.INFO("Growthcraft Version: "+getModVersion("Growthcraft"));
if (getModVersion("Growthcraft").equals("1.7.10-2.3.1")){
//Load Growthcraft Compat
Growthcraft = true;
Logger.INFO("Components enabled for: Growthcraft");
totalMods++;
}
else {
Growthcraft = false;
Logger.INFO("Growthcraft found, but the version was too new. I will update GC support eventually.");
}
}
if (Loader.isModLoaded("CoFHCore")){
CoFHCore = true;
Logger.INFO("Components enabled for: CoFHCore");
totalMods++;
}
if (Loader.isModLoaded("Forestry")){
Forestry = true;
Logger.INFO("Components enabled for: Forestry");
totalMods++;
}
if (Loader.isModLoaded("MagicBees")){
MagicBees = true;
Logger.INFO("Components enabled for: MagicBees");
totalMods++;
}
if (Loader.isModLoaded("psychedelicraft")){
Psychedelicraft = true;
Logger.INFO("Components enabled for: Psychedelicraft");
totalMods++;
}
if (Loader.isModLoaded("ImmersiveEngineering")){
ImmersiveEngineering = true;
Logger.INFO("Components enabled for: ImmersiveEngineering");
totalMods++;
}
if (Loader.isModLoaded("ExtraBees")){
ExtraBees = true;
Logger.INFO("Components enabled for: ExtraBees");
totalMods++;
}
if (Loader.isModLoaded("ThermalFoundation") == false){
ThermalFoundation = false;
Logger.INFO("Components enabled for: ThermalFoundation - This feature will disable itself if you add TF.");
totalMods++;
}
else if (Loader.isModLoaded("ThermalFoundation")){
ThermalFoundation = true;
Logger.INFO("Components disabled for: ThermalFoundation - This feature will enable itself if you remove TF.");
//totalMods++;
}
if (Loader.isModLoaded("ihl")){
IHL = true;
Logger.INFO("Components enabled for: IHL");
totalMods++;
}
if (Loader.isModLoaded("Baubles")){
Baubles = true;
Logger.INFO("Components enabled for: Baubles");
totalMods++;
}
if (Loader.isModLoaded("GalacticraftCore")){
GalacticraftCore = true;
Logger.INFO("Components enabled for: Galacticraft Core");
totalMods++;
}
if (Loader.isModLoaded("OpenComputers")){
OpenComputers = true;
Logger.INFO("Components enabled for: OpenComputers");
totalMods++;
}
if (Loader.isModLoaded("computronics")){
Computronics = true;
Logger.INFO("Components disabled for: Computronics - This feature will enable itself if you remove Computronics.");
totalMods++;
}
else {
Logger.INFO("Components enabled for: Computronics - This feature will disable itself if you add Computronics.");
}
if (Loader.isModLoaded("GTRedtech")){
RedTech = true;
Logger.INFO("Components enabled for: GTRedtech");
totalMods++;
}
if (Loader.isModLoaded("tectech")){
TecTech = true;
Logger.INFO("Components enabled for: TecTech");
totalMods++;
}
if (Loader.isModLoaded("witchery")){
Witchery = true;
Logger.INFO("Components enabled for: Witchery");
totalMods++;
}
Logger.INFO("Content found for "+totalMods+" mods");
}
public static String getModVersion(final String modName){
final String ver = cpw.mods.fml.common.FMLCommonHandler.instance().findContainerFor(modName).getVersion();
return ver;
}
}
|