-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFrameGrabber.java
45 lines (36 loc) · 1.61 KB
/
FrameGrabber.java
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
package com.gooroos.FrameGrabber;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
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.network.NetworkMod;
import cpw.mods.fml.common.registry.TickRegistry;
import cpw.mods.fml.relauncher.Side;
import com.gooroos.FrameGrabber.client.ClientTickHandler;
@Mod(modid="FrameGrabber", name="FrameGrabber", version="0.1.0")
@NetworkMod(clientSideRequired=true)
public class FrameGrabber {
// The instance of your mod that Forge uses.
@Instance("FrameGrabber")
public static FrameGrabber instance;
// Says where the client and server 'proxy' code is loaded.
@SidedProxy(clientSide="com.gooroos.FrameGrabber.client.ClientProxy", serverSide="com.gooroos.FrameGrabber.CommonProxy")
public static CommonProxy proxy;
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
ClientTickHandler handler = new ClientTickHandler();
TickRegistry.registerTickHandler(handler, Side.CLIENT);
proxy.registerKeyBindings(handler);
}
@EventHandler
public void load(FMLInitializationEvent event) {
// Don't really need this yet.
}
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
// Don't really need this yet.
}
}