• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java FMLLoadCompleteEvent类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中cpw.mods.fml.common.event.FMLLoadCompleteEvent的典型用法代码示例。如果您正苦于以下问题:Java FMLLoadCompleteEvent类的具体用法?Java FMLLoadCompleteEvent怎么用?Java FMLLoadCompleteEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



FMLLoadCompleteEvent类属于cpw.mods.fml.common.event包,在下文中一共展示了FMLLoadCompleteEvent类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: onLoadComplete

import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@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();
        }
    }
}
 
开发者ID:GWYOG,项目名称:GTNEIOrePlugin,代码行数:19,代码来源:GTNEIOrePlugin.java


示例2: loadComplete

import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@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();
    }
}
 
开发者ID:AdvancedMods,项目名称:AMCore,代码行数:17,代码来源:AMCore.java


示例3: minus

import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@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();
    }
}
 
开发者ID:SpitefulFox,项目名称:Unthaumic,代码行数:22,代码来源:Unthaumic.java


示例4: loadFinished

import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@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);
				}
			}
		}
	}
}
 
开发者ID:TTFTCUTS,项目名称:ShadowsOfPhysis,代码行数:19,代码来源:CompatBaubles.java


示例5: onAvailable

import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@Subscribe
public void onAvailable(FMLLoadCompleteEvent evt)
{
    if (shouldSortRecipies)
    {
        RecipeSorter.sortCraftManager();
    }
    FluidRegistry.validateFluidRegistry();
}
 
开发者ID:SchrodingersSpy,项目名称:TRHS_Club_Mod_2016,代码行数:10,代码来源:ForgeModContainer.java


示例6: loadComplete

import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@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();
}
 
开发者ID:LambdaInnovation,项目名称:LambdaLib,代码行数:10,代码来源:LLModContainer.java


示例7: onAvailable

import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@Subscribe
public void onAvailable(FMLLoadCompleteEvent evt)
{
    if (shouldSortRecipies)
    {
        RecipeSorter.sortCraftManager();
    }
}
 
开发者ID:alexandrage,项目名称:CauldronGit,代码行数:9,代码来源:ForgeModContainer.java


示例8: complete

import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@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, ", "));
	}
}
 
开发者ID:Strikingwolf,项目名称:UpToDate,代码行数:16,代码来源:UpToDate.java


示例9: postInit

import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@EventHandler
  public void postInit(FMLLoadCompleteEvent event)
  {
for (int i = 0; i < Importer.importers.size(); i++) {
	Importer.importers.get(i).processImport(recipes);
}
  }
 
开发者ID:CreativeMD,项目名称:HandCraft,代码行数:8,代码来源:HandCraft.java


示例10: finishModLoading

import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@EventHandler
public void finishModLoading(FMLLoadCompleteEvent event)
{
	for (int i = 0; i < ConfigRegistry.systems.size(); i++) {
		ConfigRegistry.systems.get(i).loadSystem();
	}
}
 
开发者ID:CreativeMD,项目名称:CraftingManager,代码行数:8,代码来源:CraftingManagerMod.java


示例11: loadFinished

import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
public void loadFinished(FMLLoadCompleteEvent event) {
	//RecipeHelper.parseRecipes();
	PhysisToolMaterial.buildMaterials();
	ItemTrowel.buildRecipes();
	
	PhysisIntegration.loadFinished(event, false);
}
 
开发者ID:TTFTCUTS,项目名称:ShadowsOfPhysis,代码行数:8,代码来源:CommonProxy.java


示例12: onAvalible

import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@Subscribe
public void onAvalible(FMLLoadCompleteEvent evt)
{
    if (shouldSortRecipies)
    {
        RecipeSorter.sortCraftManager();
    }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:9,代码来源:ForgeDummyContainer.java


示例13: OnForgeLoadFinish

import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
/**
 * 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
}
 
开发者ID:manageryzy,项目名称:Minecraft-Forge-Class-Template,代码行数:15,代码来源:ExampleMod.java


示例14: loadComplete

import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@Mod.EventHandler
public void loadComplete(final FMLLoadCompleteEvent event) {
    ExtraUtilsMod.extraUtils.loadComplete(event);
}
 
开发者ID:sameer,项目名称:ExtraUtilities,代码行数:5,代码来源:ExtraUtilsMod.java


示例15: loadComplete

import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
public void loadComplete(final FMLLoadCompleteEvent event) {
    if (!this.hasSpecialInit) {
        this.hasSpecialInit = true;
        this.specialInit();
    }
}
 
开发者ID:sameer,项目名称:ExtraUtilities,代码行数:7,代码来源:ExtraUtils.java


示例16: saveConfig

import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@EventHandler
public void saveConfig(FMLLoadCompleteEvent evt) {
	config.save();
}
 
开发者ID:PrincessRTFM,项目名称:TweakCraft,代码行数:5,代码来源:TweakCraft.java


示例17: loadComplete

import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@Subscribe
public void loadComplete(FMLLoadCompleteEvent event) {
    doProgress(State.LOAD_COMPLETE, this);
}
 
开发者ID:AlexIIL,项目名称:BetterLoadingScreen_1.7,代码行数:5,代码来源:ModLoadingListener.java


示例18: loadComplete

import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@EventHandler
public void loadComplete(FMLLoadCompleteEvent event) {
  processImc(FMLInterModComms.fetchRuntimeMessages(this)); //Some mods send IMCs during PostInit, so we catch them here.
}
 
开发者ID:SleepyTrousers,项目名称:Structures,代码行数:5,代码来源:EnderStructures.java


示例19: loadComplete

import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@EventHandler
public void loadComplete(FMLLoadCompleteEvent event)
{
	new IMCHandler().onIMCEvent(FMLInterModComms.fetchRuntimeMessages(this));
}
 
开发者ID:Microsoft,项目名称:vsminecraft,代码行数:6,代码来源:Mekanism.java


示例20: loadComplete

import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@Mod.EventHandler
public void loadComplete(FMLLoadCompleteEvent event) {
    proxy.loadComplete();
}
 
开发者ID:Lomeli12,项目名称:SimpleCondenser,代码行数:5,代码来源:SimpleCondenser.java



注:本文中的cpw.mods.fml.common.event.FMLLoadCompleteEvent类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Neo4jConfiguration类代码示例发布时间:2022-05-21
下一篇:
Java RemoteLoadableExtension类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap