Java 类net.minecraftforge.fml.common.event.FMLConstructionEvent 实例源码

项目:Toms-Mod    文件:CoreInit.java   
@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();
}
项目:OpenModsLib    文件:OpenModsCore.java   
@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";
        }
    });
}
项目:Industrial-Foregoing    文件:IndustrialForegoing.java   
@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);
}
项目:Toms-Mod    文件:ToolsInit.java   
@EventHandler
public static void construction(FMLConstructionEvent event) {
    CoreInit.modids.add(new IMod() {
        @Override
        public String getModID() {
            return modid;
        }

        @Override
        public boolean hadPreInit() {
            return hadPreInit;
        }
    });
}
项目:Toms-Mod    文件:FactoryInit.java   
@EventHandler
public static void construction(FMLConstructionEvent event) {
    CoreInit.modids.add(new IMod() {
        @Override
        public String getModID() {
            return modid;
        }

        @Override
        public boolean hadPreInit() {
            return hadPreInit;
        }
    });
}
项目:Toms-Mod    文件:TransportInit.java   
@EventHandler
public static void construction(FMLConstructionEvent event) {
    CoreInit.modids.add(new IMod() {
        @Override
        public String getModID() {
            return modid;
        }

        @Override
        public boolean hadPreInit() {
            return hadPreInit;
        }
    });
}
项目:Toms-Mod    文件:DefenseInit.java   
@EventHandler
public static void construction(FMLConstructionEvent event) {
    CoreInit.modids.add(new IMod() {
        @Override
        public String getModID() {
            return modid;
        }

        @Override
        public boolean hadPreInit() {
            return hadPreInit;
        }
    });
}
项目:Toms-Mod    文件:EnergyInit.java   
@EventHandler
public static void construction(FMLConstructionEvent event) {
    CoreInit.modids.add(new IMod() {
        @Override
        public String getModID() {
            return modid;
        }

        @Override
        public boolean hadPreInit() {
            return hadPreInit;
        }
    });
}
项目:Toms-Mod    文件:StorageInit.java   
@EventHandler
public static void construction(FMLConstructionEvent event) {
    CoreInit.modids.add(new IMod() {
        @Override
        public String getModID() {
            return modid;
        }

        @Override
        public boolean hadPreInit() {
            return hadPreInit;
        }
    });
}
项目:HardVox    文件:HardVox.java   
@EventHandler
public void construct(FMLConstructionEvent event) {
    EventBus bus = MinecraftForge.EVENT_BUS;
    bus.register(proxy);
    bus.register(new SelectionListener());
}
项目:CustomWorldGen    文件:FMLContainer.java   
@Subscribe
public void modConstruction(FMLConstructionEvent evt)
{
    NetworkRegistry.INSTANCE.register(this, this.getClass(), null, evt.getASMHarvestedData());
    FMLNetworkHandler.registerChannel(this, evt.getSide());
}
项目:MiningWells    文件:MiningWells.java   
@EventHandler
public void construct(FMLConstructionEvent e) {
    startTimer();
    proxy.construct(e);
    LogUtils.info("Construction event took " + endTimer() + " ms.");
}
项目:MiningWells    文件:ClientProxy.java   
public void construct(FMLConstructionEvent e) {
    super.construct(e);
}
项目:MiningWells    文件:ServerProxy.java   
public void construct(FMLConstructionEvent e) {
    super.construct(e);
}
项目:MiningWells    文件:CommonProxy.java   
public void construct(FMLConstructionEvent e) {
}
项目:BetterFonts    文件:BFDummyContainer.java   
@Subscribe
public void modConstruction(FMLConstructionEvent evt)
{

}
项目:InspiringWorld    文件:RegDelegate.java   
@Mod.EventHandler
public void construct(FMLConstructionEvent event)
{
    RegistryHelper.INSTANCE.includeMod(this.getModid(), this.getAnnotatedClass());
}
项目:Dark-Utilities    文件:DarkUtils.java   
@EventHandler
public void onConstruction (FMLConstructionEvent event) {

    ConfigurationHandler.initConfig(new File("config/darkutils.cfg"));
    FeatureManager.init(event.getASMHarvestedData());
}
项目:MMDLib-old    文件:MMDLib.java   
@EventHandler
public void construction (FMLConstructionEvent event) {
}
项目:Alloycraft    文件:UtilsMod.java   
@EventHandler
public void constructing(FMLConstructionEvent event) {
    FluidRegistry.enableUniversalBucket();
}
项目:Bookshelf    文件:Bookshelf.java   
@EventHandler
public void onConstruction (FMLConstructionEvent event) {

    AnnotationUtils.asmData = event.getASMHarvestedData();
    MinecraftForge.EVENT_BUS.register(this);
}
项目:Production-Line    文件:ProductionLine.java   
@Mod.EventHandler
public void construct(FMLConstructionEvent event) {
    MinecraftForge.EVENT_BUS.register(INSTANCE);
}
项目:OpenBlocks    文件:OpenBlocks.java   
@EventHandler
public void construct(FMLConstructionEvent evt) {
    apiSetup.injectProvider();
}
项目:rezolve    文件:RezolveModContainer.java   
@Subscribe
public void modConstruction(FMLConstructionEvent evt) {

}