@EventHandler public static void construction(FMLConstructionEvent event) { log.info("Tom's Mod Version: " + Configs.version); FluidRegistry.enableUniversalBucket(); modids.add(new IMod() { @Override public String getModID() { return modid; } @Override public boolean hadPreInit() { return hadPreInit; } }); proxy.construction(); }
@Subscribe public void modConstruction(FMLConstructionEvent evt) { OpenModsClassTransformer.instance().injectAsmData(evt.getASMHarvestedData()); FMLCommonHandler.instance().registerCrashCallable(new ICrashCallable() { @Override public String call() throws Exception { return OpenModsClassTransformer.instance().listStates(); } @Override public String getLabel() { return "OpenModsLib class transformers"; } }); }
@Mod.EventHandler public void construction(FMLConstructionEvent event) { Arrays.asList(TeslaCoreLibConfig.REGISTER_MACHINE_CASE, TeslaCoreLibConfig.REGISTER_GEARS, TeslaCoreLibConfig.REGISTER_GEAR_TYPES + "#" + CoreGearType.IRON.getMaterial(), TeslaCoreLibConfig.REGISTER_GEAR_TYPES + "#" + CoreGearType.GOLD.getMaterial(), TeslaCoreLibConfig.REGISTER_GEAR_TYPES + "#" + CoreGearType.DIAMOND.getMaterial(), TeslaCoreLibConfig.REGISTER_ADDONS, TeslaCoreLibConfig.REGISTER_SPEED_ADDONS, TeslaCoreLibConfig.REGISTER_ENERGY_ADDONS).forEach(s -> TeslaCoreLibConfig.INSTANCE.setDefaultFlag(s, true)); TeslaCoreLibConfig.INSTANCE.setDefaultFlag(TeslaCoreLibConfig.ALLOW_ENERGY_DISPLAY_CHANGE, false); }
@EventHandler public static void construction(FMLConstructionEvent event) { CoreInit.modids.add(new IMod() { @Override public String getModID() { return modid; } @Override public boolean hadPreInit() { return hadPreInit; } }); }
@EventHandler public void construct(FMLConstructionEvent event) { EventBus bus = MinecraftForge.EVENT_BUS; bus.register(proxy); bus.register(new SelectionListener()); }
@Subscribe public void modConstruction(FMLConstructionEvent evt) { NetworkRegistry.INSTANCE.register(this, this.getClass(), null, evt.getASMHarvestedData()); FMLNetworkHandler.registerChannel(this, evt.getSide()); }
@EventHandler public void construct(FMLConstructionEvent e) { startTimer(); proxy.construct(e); LogUtils.info("Construction event took " + endTimer() + " ms."); }
public void construct(FMLConstructionEvent e) { super.construct(e); }
public void construct(FMLConstructionEvent e) { }
@Subscribe public void modConstruction(FMLConstructionEvent evt) { }
@Mod.EventHandler public void construct(FMLConstructionEvent event) { RegistryHelper.INSTANCE.includeMod(this.getModid(), this.getAnnotatedClass()); }
@EventHandler public void onConstruction (FMLConstructionEvent event) { ConfigurationHandler.initConfig(new File("config/darkutils.cfg")); FeatureManager.init(event.getASMHarvestedData()); }
@EventHandler public void construction (FMLConstructionEvent event) { }
@EventHandler public void constructing(FMLConstructionEvent event) { FluidRegistry.enableUniversalBucket(); }
@EventHandler public void onConstruction (FMLConstructionEvent event) { AnnotationUtils.asmData = event.getASMHarvestedData(); MinecraftForge.EVENT_BUS.register(this); }
@Mod.EventHandler public void construct(FMLConstructionEvent event) { MinecraftForge.EVENT_BUS.register(INSTANCE); }
@EventHandler public void construct(FMLConstructionEvent evt) { apiSetup.injectProvider(); }