preInit and PostInit
This commit is contained in:
@@ -4,6 +4,8 @@ import net.minecraft.init.Blocks;
|
||||
import cpw.mods.fml.common.Mod;
|
||||
import cpw.mods.fml.common.Mod.EventHandler;
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
|
||||
@Mod(modid = Main.MODID, version = Main.VERSION)
|
||||
public class Main
|
||||
@@ -11,6 +13,13 @@ public class Main
|
||||
public static final String MODID = "energy";
|
||||
public static final String VERSION = "1.0";
|
||||
|
||||
@EventHandler
|
||||
public void preinit(FMLPreInitializationEvent event)
|
||||
{
|
||||
// some example code
|
||||
//System.out.println("DIRT BLOCK >> "+Blocks.dirt.getUnlocalizedName());
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void init(FMLInitializationEvent event)
|
||||
{
|
||||
@@ -18,5 +27,12 @@ public class Main
|
||||
//System.out.println("DIRT BLOCK >> "+Blocks.dirt.getUnlocalizedName());
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void postInit(FMLPostInitializationEvent e) {
|
||||
|
||||
System.out.println("U want some Body Massage?");
|
||||
//RenderingRegistry.registerEntityRenderingHandler(EntityShit.class, new RenderSnowball(ModItems.itemShit));
|
||||
}
|
||||
|
||||
//Fluids comment
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user