blob: 17f6d0e012020abb8a1b708584c9145d3ecb3783 (
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
|
/**
*
*/
package darkknight.jewelrycraft.events;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import darkknight.jewelrycraft.JewelrycraftMod;
import darkknight.jewelrycraft.block.BlockList;
import darkknight.jewelrycraft.client.gui.GuiHandler;
import darkknight.jewelrycraft.config.ConfigHandler;
import darkknight.jewelrycraft.damage.DamageSourceList;
import darkknight.jewelrycraft.effects.EffectsList;
import darkknight.jewelrycraft.item.ItemList;
import darkknight.jewelrycraft.util.JewelrycraftUtil;
import darkknight.jewelrycraft.worldGen.Generation;
import net.minecraftforge.common.MinecraftForge;
public class EventList {
public static void preInit(FMLPreInitializationEvent e) {
MinecraftForge.EVENT_BUS
.register(new EntityEventHandler());
MinecraftForge.EVENT_BUS.register(new BlockEventHandler());
MinecraftForge.EVENT_BUS.register(BucketHandler.INSTANCE);
FMLCommonHandler.instance().bus()
.register(new EventCommonHandler());
BucketHandler.INSTANCE.buckets.put(BlockList.moltenMetal,
ItemList.bucket);
JewelrycraftMod.proxy.preInit();
}
public static void init(FMLInitializationEvent e) {
GameRegistry.registerWorldGenerator(new Generation(), 0);
JewelrycraftMod.proxy.init();
new GuiHandler();
FMLCommonHandler.instance().bus()
.register(ConfigHandler.INSTANCE);
}
public static void postInit(FMLPostInitializationEvent e) {
JewelrycraftUtil.addMetals();
JewelrycraftUtil.jamcrafters();
EffectsList.postInit(e);
DamageSourceList.postInit(e);
JewelrycraftMod.proxy.postInit();
JewelrycraftUtil.addStuff();
}
}
|