Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Removed @PreInit, @Init, and @PostInit, in favor of @EventHandler #4

Merged
merged 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 6 deletions.
  1. +4 −6 tutorial/generic/Generic.java
View
10 tutorial/generic/Generic.java
@@ -11,10 +11,8 @@
import net.minecraft.item.crafting.FurnaceRecipes;
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.common.Mod;
-import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.Instance;
-import cpw.mods.fml.common.Mod.PostInit;
-import cpw.mods.fml.common.Mod.PreInit;
+import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
@@ -88,12 +86,12 @@
@SidedProxy(clientSide = "tutorial.generic.client.ClientProxy", serverSide = "tutorial.generic.CommonProxy")
public static CommonProxy proxy;
- @PreInit
+ @EventHandler
public void preInit (FMLPreInitializationEvent event) {
// Stub Method
}
- @Init
+ @EventHandler
public void load (FMLInitializationEvent event) {
proxy.registerRenderers();
@@ -106,7 +104,7 @@ public void load (FMLInitializationEvent event) {
initWorldGen();
}
- @PostInit
+ @EventHandler
public void postInit (FMLPostInitializationEvent event) {
// Stub Method
}
Something went wrong with that request. Please try again.