當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。