Java 类cpw.mods.fml.common.event.FMLLoadCompleteEvent 实例源码

项目:GTNEIOrePlugin    文件:GTNEIOrePlugin.java   
@EventHandler
public void onLoadComplete(FMLLoadCompleteEvent event) {
    if (event.getSide() == Side.CLIENT) {
        try {
            Class clazzGT6API = Class.forName("gregapi.GT_API");
            GTVersion = "GT6";
        } catch (ClassNotFoundException e) {}
        if (GTVersion.equals("GT5")) {
            new GT5OreLayerHelper();
            new GT5OreSmallHelper();
        }
        else { 
            new GT6OreLayerHelper();
            new GT6OreSmallHelper();
            new GT6OreBedrockHelper();
        }
    }
}
项目:AMCore    文件:AMCore.java   
@EventHandler
public void loadComplete(FMLLoadCompleteEvent event) {

    // Fetching runtime messages
    try {
        log.info("Fetching runtime IMC messages...");
        IMCHandler.processIMC(FMLInterModComms.fetchRuntimeMessages(this));
        log.info("Fetched runtime IMC messages.");
    } catch (Exception e) {
        log.error("=============================ERROR!=============================");
        log.error("Failed to fetch IMC Runtime messages, printing stacktrace...");
        log.error("Please report this as a bug report with the stacktrace, the minecraft log and a mod list + version to: " + issueURL);
        log.error("=============================ERROR!=============================");
        e.printStackTrace();
    }
}
项目:Unthaumic    文件:Unthaumic.java   
@EventHandler
public void minus(FMLLoadCompleteEvent event) {
    for(ResearchCategoryList tab : ResearchCategories.researchCategories.values()){
        if(tab != null) {
            for (ResearchItem item : tab.research.values()) {
                if(item != null){
                    item.setAutoUnlock();
                }
            }
        }
    }
    try {
        Field warpMap = ThaumcraftApi.class.getDeclaredField("warpMap");
        warpMap.setAccessible(true);
        HashMap<Object, Integer> warpList = (HashMap<Object, Integer>)warpMap.get(null);
        warpList.clear();
    }
    catch (Exception e){
        e.printStackTrace();
    }
}
项目:AdvancedTools    文件:AdvancedTools.java   
@EventHandler
public void loadComplete(FMLLoadCompleteEvent event) {

    // Fetching runtime messages
    try {
        log.info("Fetching runtime IMC messages...");
        IMCHandler.processIMC(FMLInterModComms.fetchRuntimeMessages(this));
        log.info("Fetched runtime IMC messages.");
    } catch (Exception e) {
        log.error("=============================ERROR!=============================");
        log.error("Failed to fetch IMC Runtime messages, printing stacktrace...");
        log.error("Please report this as a bug report with the stacktrace, the minecraft log and a mod list + version to: " + issueURL);
        log.error("=============================ERROR!=============================");
        e.printStackTrace();
    }
}
项目:ShadowsOfPhysis    文件:CompatBaubles.java   
@Override
public void loadFinished(FMLLoadCompleteEvent event, boolean client) {
    if (!client) {
        for (PhysisToolMaterial mat : PhysisToolMaterial.materials.values()) {
            if (mat.orename.startsWith("ingot")) {
                List<ItemStack> ingots = OreDictionary.getOres(mat.orename);
                if (ingots.size() > 0) {
                    ItemStack ingot = ingots.get(0);

                    ItemStack ringitem = new ItemStack(ring, 1, mat.id);
                    PhysisToolMaterial.writeMaterialToStack(mat, ringitem);

                    GameRegistry.addSmelting(ringitem, ingot.copy(), 1.0F);
                }
            }
        }
    }
}
项目:TRHS_Club_Mod_2016    文件:ForgeModContainer.java   
@Subscribe
public void onAvailable(FMLLoadCompleteEvent evt)
{
    if (shouldSortRecipies)
    {
        RecipeSorter.sortCraftManager();
    }
    FluidRegistry.validateFluidRegistry();
}
项目:LambdaLib    文件:LLModContainer.java   
@Subscribe
public void loadComplete(FMLLoadCompleteEvent event) {
    log.info("AnnotationRegistry is loaded. Checking states.");
    if (LambdaLib.DEBUG) {
        log.info(RegistrationManager.INSTANCE.profiler.toString());
    }

    RegistrationManager.INSTANCE.checkLoadState();
}
项目:CauldronGit    文件:ForgeModContainer.java   
@Subscribe
public void onAvailable(FMLLoadCompleteEvent evt)
{
    if (shouldSortRecipies)
    {
        RecipeSorter.sortCraftManager();
    }
}
项目:UpToDate    文件:UpToDate.java   
@EventHandler
public void complete(FMLLoadCompleteEvent event) {
    if (Util.netIsAvailable()) {
        for (ModContainer mod : Loader.instance().getActiveModList()) {
            if (mod.getMod() instanceof IUpdateable) {
                registerUpdateable((IUpdateable) mod.getMod());
            }
        }
        String[] fetchedNames = new String[updates.size()];
        for (FetchedUpdateable update : updates)
            fetchedNames[fetchedNames.length - 1] = update.name;

        Logger.info("The following mods are out of date: " + StringUtils.join(fetchedNames, ", "));
    }
}
项目:HandCraft    文件:HandCraft.java   
@EventHandler
  public void postInit(FMLLoadCompleteEvent event)
  {
for (int i = 0; i < Importer.importers.size(); i++) {
    Importer.importers.get(i).processImport(recipes);
}
  }
项目:CraftingManager    文件:CraftingManagerMod.java   
@EventHandler
public void finishModLoading(FMLLoadCompleteEvent event)
{
    for (int i = 0; i < ConfigRegistry.systems.size(); i++) {
        ConfigRegistry.systems.get(i).loadSystem();
    }
}
项目:Cauldron    文件:ForgeModContainer.java   
@Subscribe
public void onAvailable(FMLLoadCompleteEvent evt)
{
    if (shouldSortRecipies)
    {
        RecipeSorter.sortCraftManager();
    }
}
项目:Cauldron    文件:ForgeModContainer.java   
@Subscribe
public void onAvailable(FMLLoadCompleteEvent evt)
{
    if (shouldSortRecipies)
    {
        RecipeSorter.sortCraftManager();
    }
}
项目:Cauldron    文件:ForgeModContainer.java   
@Subscribe
public void onAvailable(FMLLoadCompleteEvent evt)
{
    if (shouldSortRecipies)
    {
        RecipeSorter.sortCraftManager();
    }
}
项目:ShadowsOfPhysis    文件:CommonProxy.java   
public void loadFinished(FMLLoadCompleteEvent event) {
    //RecipeHelper.parseRecipes();
    PhysisToolMaterial.buildMaterials();
    ItemTrowel.buildRecipes();

    PhysisIntegration.loadFinished(event, false);
}
项目:RuneCraftery    文件:ForgeDummyContainer.java   
@Subscribe
public void onAvalible(FMLLoadCompleteEvent evt)
{
    if (shouldSortRecipies)
    {
        RecipeSorter.sortCraftManager();
    }
}
项目:RuneCraftery    文件:ForgeDummyContainer.java   
@Subscribe
public void onAvalible(FMLLoadCompleteEvent evt)
{
    if (shouldSortRecipies)
    {
        RecipeSorter.sortCraftManager();
    }
}
项目:Minecraft-Forge-Class-Template    文件:ExampleMod.java   
/**
 * The Forge Load Complete Event.
 * Actually , this event is really useless unless you want to 
 * make some mod for Minecraft GUI.
 * 
 * @param event
 */
public void OnForgeLoadFinish(FMLLoadCompleteEvent event)
{
    /*!gen.mod.hook.OnLoadFinish*/
    /**/

    //TODO:Add your own code here
}
项目:BetterNutritionMod    文件:ForgeDummyContainer.java   
@Subscribe
public void onAvalible(FMLLoadCompleteEvent evt)
{
    if (shouldSortRecipies)
    {
        RecipeSorter.sortCraftManager();
    }
}
项目:ExtraUtilities    文件:ExtraUtilsMod.java   
@Mod.EventHandler
public void loadComplete(final FMLLoadCompleteEvent event) {
    ExtraUtilsMod.extraUtils.loadComplete(event);
}
项目:ExtraUtilities    文件:ExtraUtils.java   
public void loadComplete(final FMLLoadCompleteEvent event) {
    if (!this.hasSpecialInit) {
        this.hasSpecialInit = true;
        this.specialInit();
    }
}
项目:TweakCraft    文件:TweakCraft.java   
@EventHandler
public void saveConfig(FMLLoadCompleteEvent evt) {
    config.save();
}
项目:BetterLoadingScreen_1.7    文件:ModLoadingListener.java   
@Subscribe
public void loadComplete(FMLLoadCompleteEvent event) {
    doProgress(State.LOAD_COMPLETE, this);
}
项目:Structures    文件:EnderStructures.java   
@EventHandler
public void loadComplete(FMLLoadCompleteEvent event) {
  processImc(FMLInterModComms.fetchRuntimeMessages(this)); //Some mods send IMCs during PostInit, so we catch them here.
}
项目:vsminecraft    文件:Mekanism.java   
@EventHandler
public void loadComplete(FMLLoadCompleteEvent event)
{
    new IMCHandler().onIMCEvent(FMLInterModComms.fetchRuntimeMessages(this));
}
项目:SimpleCondenser    文件:SimpleCondenser.java   
@Mod.EventHandler
public void loadComplete(FMLLoadCompleteEvent event) {
    proxy.loadComplete();
}
项目:ShoulderSurfing    文件:ShoulderSurfing.java   
@Subscribe
public void load(FMLLoadCompleteEvent event){
    return;
}
项目:ShoulderSurfing    文件:ShoulderSurfing.java   
@Subscribe
public void load(FMLLoadCompleteEvent event){
    return;
}
项目:DimensionGuard    文件:DimensionGuard.java   
@Mod.EventHandler
public void loadComplete(FMLLoadCompleteEvent event)
{
    DisabledHandler.init();
}
项目:ShadowsOfPhysis    文件:Physis.java   
@Mod.EventHandler
public void loadFinished(FMLLoadCompleteEvent event) {
    proxy.loadFinished(event);
}
项目:ShadowsOfPhysis    文件:ClientProxy.java   
@Override
public void loadFinished(FMLLoadCompleteEvent event) {
    super.loadFinished(event);

    PhysisIntegration.loadFinished(event, true);
}
项目:ShadowsOfPhysis    文件:PhysisIntegration.java   
public static void loadFinished(FMLLoadCompleteEvent event, boolean client) {
    for (CompatModule module : modules) {
        module.loadFinished(event, client);
    }
}
项目:RuneCraftery    文件:ModLoaderModContainer.java   
@Subscribe
public void loadComplete(FMLLoadCompleteEvent complete)
{
    ModLoaderHelper.finishModLoading(this);
}
项目:RuneCraftery    文件:ModLoaderModContainer.java   
@Subscribe
public void loadComplete(FMLLoadCompleteEvent complete)
{
    ModLoaderHelper.finishModLoading(this);
}
项目:BetterNutritionMod    文件:ModLoaderModContainer.java   
@Subscribe
public void loadComplete(FMLLoadCompleteEvent complete)
{
    ModLoaderHelper.finishModLoading(this);
}
项目:OpenPeripheral    文件:OpenPeripheralCore.java   
@Mod.EventHandler
public void loadComplete(FMLLoadCompleteEvent evt) {
    if (ArchitectureChecker.INSTANCE.isEnabled(Constants.ARCH_COMPUTER_CRAFT)) ModuleComputerCraft.registerProvider();
}
项目:ShadowsOfPhysis    文件:CompatModule.java   
public void loadFinished(FMLLoadCompleteEvent event, boolean client) {}