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

GTNEIOrePlugin.java 文件源码 项目:GTNEIOrePlugin 阅读 20 收藏 0 点赞 0 评论 0
@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.java 文件源码 项目:AMCore 阅读 27 收藏 0 点赞 0 评论 0
@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.java 文件源码 项目:Unthaumic 阅读 24 收藏 0 点赞 0 评论 0
@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.java 文件源码 项目:AdvancedTools 阅读 26 收藏 0 点赞 0 评论 0
@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();
    }
}
CompatBaubles.java 文件源码 项目:ShadowsOfPhysis 阅读 19 收藏 0 点赞 0 评论 0
@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);
                }
            }
        }
    }
}
ForgeModContainer.java 文件源码 项目:TRHS_Club_Mod_2016 阅读 20 收藏 0 点赞 0 评论 0
@Subscribe
public void onAvailable(FMLLoadCompleteEvent evt)
{
    if (shouldSortRecipies)
    {
        RecipeSorter.sortCraftManager();
    }
    FluidRegistry.validateFluidRegistry();
}
LLModContainer.java 文件源码 项目:LambdaLib 阅读 24 收藏 0 点赞 0 评论 0
@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();
}
ForgeModContainer.java 文件源码 项目:CauldronGit 阅读 25 收藏 0 点赞 0 评论 0
@Subscribe
public void onAvailable(FMLLoadCompleteEvent evt)
{
    if (shouldSortRecipies)
    {
        RecipeSorter.sortCraftManager();
    }
}
UpToDate.java 文件源码 项目:UpToDate 阅读 20 收藏 0 点赞 0 评论 0
@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.java 文件源码 项目:HandCraft 阅读 25 收藏 0 点赞 0 评论 0
@EventHandler
  public void postInit(FMLLoadCompleteEvent event)
  {
for (int i = 0; i < Importer.importers.size(); i++) {
    Importer.importers.get(i).processImport(recipes);
}
  }
CraftingManagerMod.java 文件源码 项目:CraftingManager 阅读 20 收藏 0 点赞 0 评论 0
@EventHandler
public void finishModLoading(FMLLoadCompleteEvent event)
{
    for (int i = 0; i < ConfigRegistry.systems.size(); i++) {
        ConfigRegistry.systems.get(i).loadSystem();
    }
}
ForgeModContainer.java 文件源码 项目:Cauldron 阅读 28 收藏 0 点赞 0 评论 0
@Subscribe
public void onAvailable(FMLLoadCompleteEvent evt)
{
    if (shouldSortRecipies)
    {
        RecipeSorter.sortCraftManager();
    }
}
ForgeModContainer.java 文件源码 项目:Cauldron 阅读 28 收藏 0 点赞 0 评论 0
@Subscribe
public void onAvailable(FMLLoadCompleteEvent evt)
{
    if (shouldSortRecipies)
    {
        RecipeSorter.sortCraftManager();
    }
}
ForgeModContainer.java 文件源码 项目:Cauldron 阅读 23 收藏 0 点赞 0 评论 0
@Subscribe
public void onAvailable(FMLLoadCompleteEvent evt)
{
    if (shouldSortRecipies)
    {
        RecipeSorter.sortCraftManager();
    }
}
CommonProxy.java 文件源码 项目:ShadowsOfPhysis 阅读 25 收藏 0 点赞 0 评论 0
public void loadFinished(FMLLoadCompleteEvent event) {
    //RecipeHelper.parseRecipes();
    PhysisToolMaterial.buildMaterials();
    ItemTrowel.buildRecipes();

    PhysisIntegration.loadFinished(event, false);
}
ForgeDummyContainer.java 文件源码 项目:RuneCraftery 阅读 28 收藏 0 点赞 0 评论 0
@Subscribe
public void onAvalible(FMLLoadCompleteEvent evt)
{
    if (shouldSortRecipies)
    {
        RecipeSorter.sortCraftManager();
    }
}
ForgeDummyContainer.java 文件源码 项目:RuneCraftery 阅读 22 收藏 0 点赞 0 评论 0
@Subscribe
public void onAvalible(FMLLoadCompleteEvent evt)
{
    if (shouldSortRecipies)
    {
        RecipeSorter.sortCraftManager();
    }
}
ExampleMod.java 文件源码 项目:Minecraft-Forge-Class-Template 阅读 23 收藏 0 点赞 0 评论 0
/**
 * 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
}
ForgeDummyContainer.java 文件源码 项目:BetterNutritionMod 阅读 23 收藏 0 点赞 0 评论 0
@Subscribe
public void onAvalible(FMLLoadCompleteEvent evt)
{
    if (shouldSortRecipies)
    {
        RecipeSorter.sortCraftManager();
    }
}
ExtraUtilsMod.java 文件源码 项目:ExtraUtilities 阅读 17 收藏 0 点赞 0 评论 0
@Mod.EventHandler
public void loadComplete(final FMLLoadCompleteEvent event) {
    ExtraUtilsMod.extraUtils.loadComplete(event);
}
ExtraUtils.java 文件源码 项目:ExtraUtilities 阅读 21 收藏 0 点赞 0 评论 0
public void loadComplete(final FMLLoadCompleteEvent event) {
    if (!this.hasSpecialInit) {
        this.hasSpecialInit = true;
        this.specialInit();
    }
}
TweakCraft.java 文件源码 项目:TweakCraft 阅读 17 收藏 0 点赞 0 评论 0
@EventHandler
public void saveConfig(FMLLoadCompleteEvent evt) {
    config.save();
}
ModLoadingListener.java 文件源码 项目:BetterLoadingScreen_1.7 阅读 19 收藏 0 点赞 0 评论 0
@Subscribe
public void loadComplete(FMLLoadCompleteEvent event) {
    doProgress(State.LOAD_COMPLETE, this);
}
EnderStructures.java 文件源码 项目:Structures 阅读 22 收藏 0 点赞 0 评论 0
@EventHandler
public void loadComplete(FMLLoadCompleteEvent event) {
  processImc(FMLInterModComms.fetchRuntimeMessages(this)); //Some mods send IMCs during PostInit, so we catch them here.
}
Mekanism.java 文件源码 项目:vsminecraft 阅读 27 收藏 0 点赞 0 评论 0
@EventHandler
public void loadComplete(FMLLoadCompleteEvent event)
{
    new IMCHandler().onIMCEvent(FMLInterModComms.fetchRuntimeMessages(this));
}
SimpleCondenser.java 文件源码 项目:SimpleCondenser 阅读 25 收藏 0 点赞 0 评论 0
@Mod.EventHandler
public void loadComplete(FMLLoadCompleteEvent event) {
    proxy.loadComplete();
}
ShoulderSurfing.java 文件源码 项目:ShoulderSurfing 阅读 23 收藏 0 点赞 0 评论 0
@Subscribe
public void load(FMLLoadCompleteEvent event){
    return;
}
ShoulderSurfing.java 文件源码 项目:ShoulderSurfing 阅读 25 收藏 0 点赞 0 评论 0
@Subscribe
public void load(FMLLoadCompleteEvent event){
    return;
}
DimensionGuard.java 文件源码 项目:DimensionGuard 阅读 24 收藏 0 点赞 0 评论 0
@Mod.EventHandler
public void loadComplete(FMLLoadCompleteEvent event)
{
    DisabledHandler.init();
}
Physis.java 文件源码 项目:ShadowsOfPhysis 阅读 20 收藏 0 点赞 0 评论 0
@Mod.EventHandler
public void loadFinished(FMLLoadCompleteEvent event) {
    proxy.loadFinished(event);
}


问题


面经


文章

微信
公众号

扫码关注公众号