@EventHandler public void preinit(FMLPreInitializationEvent event) { LogHelper.info("Let's Move!"); FLNetwork.init(); Configuration config = new Configuration(event.getSuggestedConfigurationFile()); config.load(); TilePusher.maxTiles = config.get(Configuration.CATEGORY_GENERAL, "maximumBlocksPushed", 1024).getInt(1024); TilePusher.powerPerTile = config.get(Configuration.CATEGORY_GENERAL, "energyPerBlock", 250).getInt(250); Recipes.shouldAddRecipes = config.get(Configuration.CATEGORY_GENERAL, "addRecipes", true).getBoolean(true); Recipes.shouldAddFrameCopyResetRecipes = config .get(Configuration.CATEGORY_GENERAL, "addFrameCopyResetRecipes", true) .getBoolean(true); redrawChunksInstantly = config.get("client", "redrawChunksInstantly", true).getBoolean(true); if (config.hasChanged()) config.save(); EntityMovingEventHandler.init(); MoverEventHandler.init(); for (int i = 0; i < 4; i++) { BlockStickyFrame.curLoadingIndex = i; GameRegistry.register(frame[i] = new BlockStickyFrame()); GameRegistry.register( new ItemBlockFrame(frame[i]).setRegistryName(frame[i].getRegistryName())); } GameRegistry.register(moving = new BlockMoving()); pusher = new BlockPusher(); pusher.setUnlocalizedName("funkylocomotion:pusher"); pusher.setRegistryName("funkylocomotion:pusher"); GameRegistry.register(pusher); GameRegistry.register(new ItemBlockPusher(pusher).setRegistryName(pusher.getRegistryName())); GameRegistry.register(slider = new BlockSlider()); GameRegistry.register(new ItemBlock(slider).setRegistryName(slider.getRegistryName())); GameRegistry.register(teleporter = new BlockTeleport()); GameRegistry.register( new ItemBlockTeleporter(teleporter).setRegistryName(teleporter.getRegistryName())); GameRegistry.register(booster = new BlockBooster()); GameRegistry.register(new ItemBlock(booster).setRegistryName(booster.getRegistryName())); GameRegistry.register(frameProjector = new BlockFrameProjector()); GameRegistry.register( new ItemBlock(frameProjector).setRegistryName(frameProjector.getRegistryName())); GameRegistry.register(wrench = WrenchFactory.makeMeAWrench()); GameRegistry.registerTileEntity(TileMovingServer.class, "funkylocomotion:tileMover"); GameRegistry.registerTileEntity(TilePusher.class, "funkylocomotion:tilePusher"); GameRegistry.registerTileEntity(TileSlider.class, "funkylocomotion:tileSlider"); GameRegistry.registerTileEntity(TileBooster.class, "funkylocomotion:tileBooster"); GameRegistry.registerTileEntity(TileTeleport.class, "funkylocomotion:tileTeleporter"); GameRegistry.registerTileEntity(TileFrameProjector.class, "funkylocomotion:tileFrameProjector"); proxy.registerRendering(); CompatHandler.initCompat(event.getAsmData()); }