Java 类cpw.mods.fml.common.Mod.PostInit 实例源码

项目:OreDupeFix    文件:OreDupeFix.java   
@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
    */
}
项目:OldMods    文件:OldBooks.java   
@PostInit
public void postInit( FMLPostInitializationEvent event )
{
}
项目:ShoulderSurfing    文件:ShoulderSurfing.java   
@PostInit
public void postInit(FMLPostInitializationEvent event) {
    //do nothing
}
项目:forge_world_downloader    文件:Modloader.java   
@PostInit   // used in 1.5.2
public void postInit(FMLPostInitializationEvent event) {
        // Stub Method
}
项目:ForestryLegacy    文件:Forestry.java   
@PostInit
public void postInit(FMLPostInitializationEvent event) {
    core.postInit();
}
项目:UrbanCraft-KnownPlayers    文件:KnownPlayers.java   
@PostInit
public void postInit(FMLPostInitializationEvent event) {
    // Stub Method
}
项目:UrbanCraft-CommandForwarder    文件:CommandForwarder.java   
@PostInit
public void postInit(FMLPostInitializationEvent event) {
    // Stub Method
}
项目:MineTech    文件:MineTechPlus.java   
@PostInit
public void postInit(FMLPostInitializationEvent e){
    GameRegistry.registerPlayerTracker(playerTracker);
    GameRegistry.registerWorldGenerator(new WorldGenOres());
}
项目:Decaying-World    文件:DecayingWorld.java   
@PostInit
public void postInit(FMLPostInitializationEvent event)
{

}
项目:Stereoscopic3D-for-Minecraft    文件:Stereoscopic3D.java   
@SideOnly(Side.CLIENT)
@PostInit
public void postInit(FMLPostInitializationEvent event)
{
}
项目:SimplePowerStorage    文件:SimplePowerStorage.java   
@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
                }));
    }
}
项目:deep-storage-tanks    文件:DeepStorageTanks.java   
@PostInit   // used in 1.5.2
public void postInit(FMLPostInitializationEvent event) {
        // Stub Method
}
项目:HeroezMod    文件:Heroez.java   
@PostInit
   public void postInit(FMLPostInitializationEvent event) {
// Stub Method
   }
项目:Mythical-Gods-Mod    文件:MythicalGods.java   
@PostInit
public void postInit(FMLPostInitializationEvent event) {
}
项目:Badger-Mod    文件:BadgerMod.java   
@PostInit
public void modsLoaded(FMLPostInitializationEvent event) 
{

}
项目:QuestCraft    文件:QuestCraft.java   
@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)
}
项目:Andrew2448PowersuitAddons    文件:ModularPowersuitsAddons.java   
@PostInit
public void postInit(FMLPostInitializationEvent event) {
    AddonRecipeManager.addRecipes();
    AddonConfig.getConfig().save();
}
项目:Sojourn    文件:Sojourn.java   
@EventHandler
public void PostInit(FMLPostInitializationEvent event)
{

}
项目:Reliquary    文件:Reliquary.java   
@PostInit
public void modsLoaded(FMLPostInitializationEvent event) {
    System.out.println("Xeno's Reliquary loaded.");
}
项目:AltEnergy    文件:AltEnergy.java   
@PostInit
public void postInit(FMLPostInitializationEvent event) {

    log(Level.INFO, "PostInitializing " + Reference.MOD_ID + " version: " + meta.version);
}
项目:HexxitGear    文件:HexxitGear.java   
@PostInit
public void postInit(FMLPostInitializationEvent evt) {
    GameRegistry.registerPlayerTracker(PlayerTracker.instance);
    HexxitGearRegistry.init();
}
项目:JLPModJam    文件:DreamLand.java   
@PostInit
public void postInit(FMLPostInitializationEvent evt) {
    // TODO stuff
}
项目:Bubblegum-Mod    文件:BubblegumMod.java   
@PostInit
public void postInit(FMLPostInitializationEvent event) {
    AddedBlocks.applyObjectTags();
}
项目:FallingEarth    文件:FallingEarth.java   
@PostInit
public void PostInit(FMLPostInitializationEvent event)
{

}
项目:fishandfalconry-mod    文件:FF.java   
@PostInit
public void modsLoaded(FMLPostInitializationEvent event) {
    //interact with other mods (now that they've been loaded)
}
项目:Amitcraft    文件:Amitcraft.java   
@PostInit
public void postInit(FMLPostInitializationEvent ev) {
    AmitLogger.info("PostInit");
}
项目:GoblinTribes    文件:GoblinTribes.java   
@PostInit
public void postInit(FMLPostInitializationEvent event) {
    // Stub Method
}
项目:PowerConverters-RPModule    文件:RPModule.java   
@PostInit
public void postInit(FMLPostInitializationEvent e)
{

}
项目:Thaumic-Tools    文件:TTCore.java   
@PostInit
public void postInit(FMLPostInitializationEvent event) {
        // Stub Method
}
项目:secri    文件:Maeme.java   
@PostInit
public void modsLoaded(FMLPostInitializationEvent event) {
    MaemeConfig.removeSpawns();
    proxy.registerSounds();
}
项目:secri    文件:mod_HDSkins.java   
@PostInit
public void modsLoaded(FMLPostInitializationEvent event) {
    KeyBindingRegistry.registerKeyBinding(new HDKeyHandler());
    HDSkinHandler.initSkins();
}
项目:WoodworkingTFC    文件:WoodworkingTFC.java   
@PostInit
public void postInit(FMLPostInitializationEvent event)
{
}
项目:ModHearthstone    文件:ModHearthstone.java   
@PostInit
public void postInit(FMLPostInitializationEvent event) {
    ModHearthstone.config.save();
}
项目:EnderTech    文件:EnderTech.java   
@PostInit
public void modsLoaded(FMLPostInitializationEvent event) {
}
项目:AdvancedBackpackMod    文件:AdvancedBackpackMod.java   
@PostInit
public void postInit(FMLPostInitializationEvent event) {
        // Stub Method
}
项目:Apocalyptic    文件:Apocalyptic.java   
@PostInit
public void modsLoaded(FMLPostInitializationEvent evt) {

    CraftingManager.getInstance().removeRestrictedRecipes();

    apLogger.info("Mod loading completed");

    CraftingManagers.smelterManager.addRecipe(512, Items.getItem("goldDust"), new ItemStack(Item.gunpowder, 1), new ItemStack(Item.blazePowder, 1), false);

    CraftingManagers.pulverizerManager.addRecipe(1024, new ItemStack(Block.sandStone, 1), new ItemStack(Block.sand, 1), true);
}
项目:WeaponsMod    文件:Weapons.java   
@PostInit
public void postInit(FMLPostInitializationEvent event)
{
    //      GameRegistry.registerCraftingHandler(craftHandler); 



}
项目:MMOMats    文件:MMOMats.java   
@PostInit
public void modsLoaded(FMLPostInitializationEvent event) {

}
项目:LEDLights    文件:LEDLights.java   
@PostInit
public void postInit(FMLPostInitializationEvent event){

}
项目:de    文件:MoreCobalt.java   
@PostInit
public void postInit(FMLPostInitializationEvent event) {

}