当前位置: 首页>>代码示例>>Java>>正文


Java PostInit类代码示例

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


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

示例1: postInit

import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public static void postInit(FMLPostInitializationEvent event) {
    log("Loading OreDupeFix...");

    if (shouldDumpOreDict) {
        dumpOreDict();
    }

    loadPreferredOres();

    if (replaceCrafting) replaceCraftingRecipes();
    if (replaceFurnace) replaceFurnaceRecipes();
    if (replaceFurnaceInsensitive) replaceFurnaceRecipesInsensitive();
    if (replaceDungeonLoot) replaceDungeonLoot();

    // IC2 machines
    try {
        if (replaceIC2Compressor) replaceIC2MachineRecipes(Recipes.compressor);
        if (replaceIC2Extractor) replaceIC2MachineRecipes(Recipes.extractor);
        if (replaceIC2Macerator) replaceIC2MachineRecipes(Recipes.macerator);
        if (replaceIC2Scrapbox) replaceIC2ScrapboxDrops();
    } catch (Throwable t) {
        t.printStackTrace();
        FMLLog.log(Level.WARNING, "Failed to replace IC2 machine recipes: "+t.getLocalizedMessage()+", fix this (update?) or turn off replaceIC2* in config");
    }

    // TE machines
    /*
    // TODO - check TE API for 'replaceable recipes' setting
    ICrucibleRecipe[] iCrucibleRecipes = CraftingManagers.crucibleManager.getRecipeList();
    IFurnaceRecipe[] iFurnaceRecipes = CraftingManagers.furnaceManager.getRecipeList();
    IPulverizerRecipe[] iPulverizerRecipes = CraftingManagers.pulverizerManager.getRecipeList();
    ISawmillRecipe[] iSawmillRecipes = CraftingManagers.sawmillManager.getRecipeList();
    ISmelterRecipe[] iSmelterRecipes = CraftingManagers.smelterManager.getRecipeList();
    //ISmelterRecipe[] iFillRecipes F= CraftingManagers.transposerManager.getFillRecipeList(); // TODO
    */
}
 
开发者ID:agaricusb,项目名称:OreDupeFix,代码行数:38,代码来源:OreDupeFix.java

示例2: postInit

import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void postInit( FMLPostInitializationEvent event )
{
}
 
开发者ID:spacechase0,项目名称:OldMods,代码行数:5,代码来源:OldBooks.java

示例3: postInit

import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void postInit(FMLPostInitializationEvent event) {
	//do nothing
}
 
开发者ID:sabarjp,项目名称:ShoulderSurfing,代码行数:5,代码来源:ShoulderSurfing.java

示例4: postInit

import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit   // used in 1.5.2
public void postInit(FMLPostInitializationEvent event) {
        // Stub Method
}
 
开发者ID:xurei,项目名称:forge_world_downloader,代码行数:5,代码来源:Modloader.java

示例5: postInit

import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void postInit(FMLPostInitializationEvent event) {
	core.postInit();
}
 
开发者ID:ForestryMC,项目名称:ForestryLegacy,代码行数:5,代码来源:Forestry.java

示例6: postInit

import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void postInit(FMLPostInitializationEvent event) {
	// Stub Method
}
 
开发者ID:oddstr13,项目名称:UrbanCraft-KnownPlayers,代码行数:5,代码来源:KnownPlayers.java

示例7: postInit

import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void postInit(FMLPostInitializationEvent e){
    GameRegistry.registerPlayerTracker(playerTracker);
    GameRegistry.registerWorldGenerator(new WorldGenOres());
}
 
开发者ID:aronthor,项目名称:MineTech,代码行数:6,代码来源:MineTechPlus.java

示例8: postInit

import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void postInit(FMLPostInitializationEvent event)
{
	
}
 
开发者ID:Draco18s,项目名称:Decaying-World,代码行数:6,代码来源:DecayingWorld.java

示例9: postInit

import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@SideOnly(Side.CLIENT)
@PostInit
public void postInit(FMLPostInitializationEvent event)
{
}
 
开发者ID:zsawyer,项目名称:Stereoscopic3D-for-Minecraft,代码行数:6,代码来源:Stereoscopic3D.java

示例10: postInit

import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void postInit(FMLPostInitializationEvent evt) {
	if (Loader.isModLoaded("ThermalExpansion")) {
		ItemStack powerCoilGold = ItemRegistry.getItem("powerCoilGold", 1);
		ItemStack powerCoilSilver = ItemRegistry.getItem("powerCoilSilver", 1);
		ItemStack powerCoilElectrum = ItemRegistry.getItem("powerCoilElectrum", 1);
		ItemStack machineFrame = ItemRegistry.getItem("machineFrame", 1);
		ItemStack servo = ItemRegistry.getItem("pneumaticServo", 1);
		
		GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(makeshiftConductance), new Object[]
				{
				"  G",
				" C ",
				"S  ",
				'G', powerCoilGold,
				'C', Item.clay,
				'S', powerCoilSilver
				}));
		
		GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(makeshiftBattery), new Object[]
				{
				"ICI",
				"CMC",
				"IXI",
				'I', "ingotIron",
				'C', "ingotCopper",
				'M', machineFrame,
				'X', makeshiftConductance
				}));
		
		GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(makeshiftUpgrade, 1, 0), new Object[]
				{
				" C ",
				"IPI",
				"SOS",
				'C', "ingotCopper",
				'I', "ingotIron",
				'P', servo,
				'S', "ingotSilver",
				'O', powerCoilElectrum
				}));
		
		GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(makeshiftUpgrade, 1, 1), new Object[]
				{
				" I ",
				"IPI",
				"GOG",
				'C', "ingotCopper",
				'I', "ingotInvar",
				'P', servo,
				'G', "ingotGold",
				'O', powerCoilElectrum
				}));
	} else {
		GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(makeshiftBattery), new Object[]
				{
				"III",
				"SRS",
				"III",
				'I', "ingotIron",
				'S', Item.stick,
				'R', Item.redstone
				}));
	}
}
 
开发者ID:sct,项目名称:SimplePowerStorage,代码行数:66,代码来源:SimplePowerStorage.java

示例11: postInit

import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
   public void postInit(FMLPostInitializationEvent event) {
// Stub Method
   }
 
开发者ID:JRizzle,项目名称:HeroezMod,代码行数:5,代码来源:Heroez.java

示例12: postInit

import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void postInit(FMLPostInitializationEvent event) {
}
 
开发者ID:TAMmodding,项目名称:Mythical-Gods-Mod,代码行数:4,代码来源:MythicalGods.java

示例13: modsLoaded

import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void modsLoaded(FMLPostInitializationEvent event) 
{
    
}
 
开发者ID:kez96,项目名称:Badger-Mod,代码行数:6,代码来源:BadgerMod.java

示例14: postInit

import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void postInit(FMLPostInitializationEvent event) {
	// TODO: Read all the quest template files here, so they are loaded
	// after all other mods pre-init (for block/item/entity ID's to be
	// usable)
}
 
开发者ID:mbrx,项目名称:QuestCraft,代码行数:7,代码来源:QuestCraft.java

示例15: postInit

import cpw.mods.fml.common.Mod.PostInit; //导入依赖的package包/类
@PostInit
public void postInit(FMLPostInitializationEvent event) {
    AddonRecipeManager.addRecipes();
    AddonConfig.getConfig().save();
}
 
开发者ID:Andrew2448,项目名称:Andrew2448PowersuitAddons,代码行数:6,代码来源:ModularPowersuitsAddons.java


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