@EventHandler public void preInit(FMLPreInitializationEvent event) { FMLCommonHandler.instance().bus().register(new KeyHandler()); ConfigurationHandler.init( new File( event.getModConfigurationDirectory().getAbsolutePath() + File.separator + this.author + "'s mods" + File.separator + this.modid + ".cfg")); proxy.registerKeyBindings(); NetworkRegistry.INSTANCE.registerGuiHandler(instance, proxy); EntityRegistry.registerModEntity(EntityMudBall.class, "Mud Ball", ++mudID, this, 64, 10, true); EntityRegistry.registerModEntity( EntityClayBall.class, "Clay Ball", ++clayID, this, 64, 10, true); LoadMod.load(); GameRegistry.registerWorldGenerator(new ClayWorldgen(), 0); }
@EventHandler public void load(FMLInitializationEvent event) { proxy.registerRenderers(); }