blob: 9945665705bafac8f6a93da5dc283f9196ef30b9 (
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
|
package gtPlusPlus.xmod.gregtech;
import java.util.ArrayList;
import java.util.List;
import gregtech.api.util.GT_Config;
import gtPlusPlus.core.handler.COMPAT_HANDLER;
import gtPlusPlus.core.handler.OldCircuitHandler;
import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.core.lib.CORE.ConfigSwitches;
import gtPlusPlus.core.world.darkworld.gen.gt.WorldGen_GT;
import gtPlusPlus.xmod.gregtech.api.enums.GregtechOrePrefixes.GT_Materials;
import gtPlusPlus.xmod.gregtech.api.util.GTPP_Config;
import gtPlusPlus.xmod.gregtech.api.world.GTPP_Worldgen;
import gtPlusPlus.xmod.gregtech.common.blocks.fluid.GregtechFluidHandler;
import gtPlusPlus.xmod.gregtech.common.items.MetaGeneratedGregtechItems;
import gtPlusPlus.xmod.gregtech.common.items.MetaGeneratedGregtechTools;
import gtPlusPlus.xmod.gregtech.loaders.*;
import gtPlusPlus.xmod.gregtech.registration.gregtech.GregtechConduits;
import gtPlusPlus.xmod.gregtech.registration.gregtech.GregtechNitroDieselFix;
public class HANDLER_GT {
public static GT_Config mMaterialProperties = null;
public static GTPP_Config sCustomWorldgenFile = null;
public static final List<WorldGen_GT> sWorldgenList = new ArrayList<WorldGen_GT>();
public static final List<GTPP_Worldgen> sCustomWorldgenList = new ArrayList<GTPP_Worldgen>();
public static void preInit(){
new MetaGeneratedGregtechItems();
if (mMaterialProperties != null){
GT_Materials.init(mMaterialProperties);
}
if (ConfigSwitches.enableOldGTcircuits){
OldCircuitHandler.preInit();
}
GregtechFluidHandler.run();
}
public static void init(){
//Load General Blocks and set up some Basic Meta Tile Entitie states
Gregtech_Blocks.run();
//Register Tile Entities
COMPAT_HANDLER.registerGregtechMachines();
//Add Custom Pipes, Wires and Cables.
GregtechConduits.run();
//Only loads if the config option is true (default: true)
if (CORE.ConfigSwitches.enableSkookumChoochers){
new MetaGeneratedGregtechTools();
new ProcessingToolHeadChoocher().run();
}
if (ConfigSwitches.enableOldGTcircuits){
OldCircuitHandler.init();
}
//Generates recipes for all gregtech smelting and alloy smelting combinations.
//RecipeGen_BlastSmelterGT.generateRecipes();
new RecipeGen_BlastSmelterGT_Ex();
}
public static void postInit(){
if (CORE.ConfigSwitches.enableNitroFix){
GregtechNitroDieselFix.run();
}
if (ConfigSwitches.enableOldGTcircuits){
OldCircuitHandler.postInit();
}
//Register some custom recipe maps for any enabled multiblocks.
//MultiblockRecipeMapHandler.run();
}
}
|