Java 类cpw.mods.fml.common.event.FMLPostInitializationEvent 实例源码

项目:connor41-etfuturum2    文件:EtFuturum.java   
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
    Items.blaze_rod.setFull3D();
    Blocks.trapped_chest.setCreativeTab(CreativeTabs.tabRedstone);

    if (enableUpdatedFoodValues) {
        setFinalField(ItemFood.class, Items.carrot, 3, "healAmount", "field_77853_b");
        setFinalField(ItemFood.class, Items.baked_potato, 5, "healAmount", "field_77853_b");
    }

    if (enableUpdatedHarvestLevels) {
        Blocks.packed_ice.setHarvestLevel("pickaxe", 0);
        Blocks.ladder.setHarvestLevel("axe", 0);
        Blocks.melon_block.setHarvestLevel("axe", 0);
    }
}
项目:4Space-5    文件:ClientProxyCore.java   
@Override
 public void postInit(FMLPostInitializationEvent event)
 {
     ClientProxyCore.registerInventoryTabs();
     ClientProxyCore.registerEntityRenderers();
     ClientProxyCore.registerItemRenderers();
     MinecraftForge.EVENT_BUS.register(new TabRegistry());
     //ClientProxyCore.playerList = GLAllocation.generateDisplayLists(1);

     if (Loader.isModLoaded("craftguide"))
        CraftGuideIntegration.register();

     try {
Field ftc = Minecraft.getMinecraft().getClass().getDeclaredField(VersionUtil.getNameDynamic(VersionUtil.KEY_FIELD_MUSICTICKER));
ftc.setAccessible(true);
ftc.set(Minecraft.getMinecraft(), new MusicTickerGC(Minecraft.getMinecraft()));
     } catch (Exception e) {e.printStackTrace();} 
 }
项目:4Space-5    文件:SpaceCore.java   
@EventHandler
   public void postInit(FMLPostInitializationEvent event) {
    SpaceLog.severe("Post-Init");

    createCreativeTabs();

    try {
        initMusic();
    } catch(NoSuchMethodError e) {
    //  e.printStackTrace();
    }

    for (ICoreModule module : modulesList) {
        module.loadRecipes();
    }

    proxy.postInit(event);
}
项目:BIGB    文件:PostInitEvent.java   
public void Go(FMLPostInitializationEvent event)
{
    LogHelper.info("BIGB post initialization started");
    MinecraftCompat.Go();
    Recipes.RegisterAll();
    LogHelper.info("BIGB has detected " + Util.GetNumberOfBlocks() + " blocks");
    LogHelper.info("BIGB has detected " + Util.GetNumberOfItems() + " items");
    Recipes.ListAllRecipes();
    LogHelper.info("BIGB has detected " + Util.GetNumberOfRecipes() + " recipes");
    CompatModuleManager.PostInitAll();
    Util.LogAllEntities();
    Util.LogAllModsAcive();

    ClientProxy a = new ClientProxy();
    //a.CheckForUpdates();

    Util.MassChangeStackSizesForAllNormalItemsAndBlocks(ModConfig.ChangeAllStackSizesToX());
    LogHelper.info("BIGB post initialization done");
}
项目:RorysMod    文件:RorysMod.java   
@EventHandler
public void postinit(FMLPostInitializationEvent event) {
    blocks.postinit(event);
    items.postinit(event);
    achievements.postinit(event);

    registerRecipieSorter();

    MekanismPlugin.load();

    RMLog.info("Registered " + Register.getRegisteredBlocks() + " block(s)");
    RMLog.info("Registered " + Register.getRegisteredItems() + " item(s)");
    RMLog.info("Registered " + Register.getRegisteredTileEntities() + " tile entity(s)");
    RMLog.info("Registered " + Register.getRegisteredEntities() + " entity(s)");
    RMLog.info("Registered " + Register.getRegisteredRecipies() + " recipie(s)");
    RMLog.info("Registered " + Register.getRegisteredEvents() + " event(s)");
    RMLog.info("Registered " + PacketDispatcher.getPacketId() + " packet(s)");

    Thread check = new Thread(versionCheker, RorysGlobal.MODID + " Version Check");
    check.start();
}
项目:PopularMMOS-EpicProportions-Mod    文件:EpicProportionsMod.java   
@Mod.EventHandler
public void postInit(FMLPostInitializationEvent event) {
    {
        //Thread.currentThread().setName("EpicProportionsMod");

        MinecraftForge.EVENT_BUS.register(new WorldGenModFlower(BlockLoader.blockFlowerChocolate));
        MinecraftForge.EVENT_BUS.register(new WorldGenModFlower(BlockLoader.blockFlowerForJen));
        MinecraftForge.EVENT_BUS.register(new WorldGenModFlower(BlockLoader.blockFlowerLove));
        MinecraftForge.EVENT_BUS.register(new WorldGenModFlower(BlockLoader.blockFlowerPinkHeart));
        MinecraftForge.EVENT_BUS.register(new WorldGenModFlower(BlockLoader.blockFlowerRainbow));
        MinecraftForge.EVENT_BUS.register(new WorldGenModFlower(BlockLoader.blockFlowerRedHeart));
        MinecraftForge.EVENT_BUS.register(new CustomPresentDrops());
        MinecraftForge.EVENT_BUS.register(new VersionChecker());
        MinecraftForge.EVENT_BUS.register(new CommandModInfo());
        //MinecraftForge.EVENT_BUS.register(new PotionLoader(33, false, 8171462));
        //MinecraftForge.EVENT_BUS.register(new PotionLoader(33, false, 8171462));
        MinecraftForge.EVENT_BUS.register(new WorldGenPumpkin_Pat());
        MinecraftForge.EVENT_BUS.register(new WorldGenPumpkin_Jen());
        MinecraftForge.EVENT_BUS.register(new StructureVillagePieces());
        //MinecraftForge.EVENT_BUS.register(new Yggdrasil());
        MinecraftForge.EVENT_BUS.register(new LogHelper());
        //MinecraftForge.EVENT_BUS.register(new CommandModInfo());
        //MinecraftForge.EVENT_BUS.register(new BiomeGenPat(getBIOME_ID_PAT()));
        //MinecraftForge.EVENT_BUS.register(new BiomeGenJen(getBIOME_ID_JEN()));
        //MinecraftForge.EVENT_BUS.register(new WorldProviderEpicProportions());
        //MinecraftForge.EVENT_BUS.register(new EpicProportionsBiomes(ENTITY_ID_0, null));
        //MinecraftForge.EVENT_BUS.register(new RenderGuiHandler());
        //MinecraftForge.ORE_GEN_BUS.register(new BiomeDecorator());

        Recipes.registerRecpies();

        MinecraftForge.EVENT_BUS.register(new CommandChangelog());

        //MUhTTawz.maAzeRcL();
    }


}
项目:ae2ee3emcaddon    文件:ae2ee3emcaddon.java   
@Mod.EventHandler
void postInit(FMLPostInitializationEvent event) {
    if (Loader.isModLoaded("EE3")) {
        Stopwatch watch = Stopwatch.createStarted();
        AELog.info("Post Initialization ( started )");

        RegisterCrafting.initRecipes();
        RegisterFurnace.initRecipes();
        RegisterFacade.initRecipes();
        RegisterGrinder.initRecipes();
        RegisterInscriber.initRecipes();
        RegisterWorld.initRecipes();

        //RecipeRegistryProxy.dumpRecipeRegistryToLog();

        AELog.info("Post Initialization ( ended after " + watch.elapsed(TimeUnit.MILLISECONDS) + "ms )");
    }
}
项目:MagicBees    文件:MagicBees.java   
@Mod.EventHandler
public void postInit(FMLPostInitializationEvent event)
{
    ModHelperManager.postInit();

    BeeManager.lateBeeInit();

    this.guiHandler = new GUIHandler();
    NetworkRegistry.INSTANCE.registerGuiHandler(this, this.guiHandler);

    proxy.registerRenderers();

    this.modConfig.saveConfigs();

    CraftingManager.setupCrafting();
    CraftingManager.registerLiquidContainers();

    VersionInfo.doVersionCheck();
    LogHelper.info("Postinit completed");
}
项目:EE3-Compatiblity    文件:BaseEE3.java   
public static void postInit(FMLPostInitializationEvent event) {
    MinecraftForge.EVENT_BUS.register(new BaseEE3());
    addOre("ingotCopper", 128);
    addOre("ingotSilver", 1024);
    addOre("ingotTin", 256);
    addOre("ingotLead", 256);
    addOre("dustSteel", 512);
    addOre("ingotRefinedIron", 512);
    addOre("dustCoal", 32);
    addOre("dustDiamond", 8192);
    addOre("dustSulfur", 32);
    addOre("dustLead", 256);
    addOre("ingotBronze", 256);
    addOre("ingotElectrum", 2052);
    addOre("dustLapis", 864);
    addOre("dustSilver", 1024);
    addOre("dustTin", 256);
}
项目:Et-Futurum    文件:EtFuturum.java   
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
    Items.blaze_rod.setFull3D();
    Blocks.trapped_chest.setCreativeTab(CreativeTabs.tabRedstone);

    if (enableUpdatedFoodValues) {
        setFinalField(ItemFood.class, Items.carrot, 3, "healAmount", "field_77853_b");
        setFinalField(ItemFood.class, Items.baked_potato, 5, "healAmount", "field_77853_b");
    }

    if (enableUpdatedHarvestLevels) {
        Blocks.packed_ice.setHarvestLevel("pickaxe", 0);
        Blocks.ladder.setHarvestLevel("axe", 0);
        Blocks.melon_block.setHarvestLevel("axe", 0);
    }
}
项目:NOVA-Core    文件:NovaMinecraft.java   
@Mod.EventHandler
public void postInit(FMLPostInitializationEvent evt) {
    try {
        proxy.postInit(evt);
        nativeConverters.stream().forEachOrdered(forgeLoadable -> forgeLoadable.postInit(evt));
        Game.recipes().init();
        ProgressManager.ProgressBar progressBar = ProgressManager.push("Post-initializing NOVA wrappers", (novaModWrappers.isEmpty() ? 1 : novaModWrappers.size()) + novaWrappers.size());
        FMLProgressBar fmlProgressBar = new FMLProgressBar(progressBar);
        novaModWrappers.stream().forEachOrdered(wrapper -> {
            fmlProgressBar.step(wrapper.getClass());
            wrapper.postInit(evt);
        });
        novaWrappers.stream().forEachOrdered(wrapper -> {
            fmlProgressBar.step(wrapper.getClass());
            wrapper.postInit(evt);
        });
        fmlProgressBar.finish();
        ProgressManager.pop(progressBar);
    } catch (Exception e) {
        Game.logger().error("Error during postInit", e);
        e.printStackTrace();
        throw new InitializationException(e);
    }
}
项目:Minegate    文件:Lustro.java   
@EventHandler
public void postinit(FMLPostInitializationEvent event){
    File file = new File("Diagnostics");
    if(!file.exists())
        file.mkdir();

    try{
        File potions = new File(file.getAbsolutePath() + File.separator + "Potions.txt");
        if(!potions.exists())
            potions.createNewFile();
        PrintStream potionOut = new PrintStream(potions);
        for(int i = 0; i < Potion.potionTypes.length; i++)
            if(Potion.potionTypes[i] == null)
                potionOut.println(i + ": null");
            else
                potionOut.println(i + ": " + Potion.potionTypes[i].getClass() + ", " + Potion.potionTypes[i].getName());
    }
    catch(Throwable th){
        System.err.println("Potions error: " + th);
    }
}
项目:vsminecraft    文件:MekanismGenerators.java   
@EventHandler
public void postInit(FMLPostInitializationEvent event)
{
    if(FuelHandler.BCPresent() && BuildcraftFuelRegistry.fuel != null)
    {
        for(IFuel s : BuildcraftFuelRegistry.fuel.getFuels())
        {
            if(!(s.getFluid() == null || GasRegistry.containsGas(s.getFluid().getName())))
            {
                GasRegistry.register(new Gas(s.getFluid()));
            }
        }

        BuildcraftFuelRegistry.fuel.addFuel(FluidRegistry.getFluid("ethene"), (int)(240 * general.TO_TE), 40 * FluidContainerRegistry.BUCKET_VOLUME);
    }

    for(ItemStack ore : OreDictionary.getOres("dustGold"))
    {
        RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("CARBON"), 10, MekanismUtils.size(ore, 4), GeneratorsItems.Hohlraum.getEmptyItem());
    }
}
项目:j6502    文件:ClientProxy.java   
@Override
public void postInit(FMLPostInitializationEvent event) {
    byte[] defaultBIOSImage = null;
    IResourceManager rm = Minecraft.getMinecraft().getResourceManager();
    try {
        IResource res = rm.getResource(new ResourceLocation("ocmos", "ocmosbios.cabe"));
        InputStream stream = res.getInputStream();
        byte[] buf = new byte[4096];
        int len = stream.read(buf);
        if(len <= 6)
            MainClass.logger.error("ocmosbios.cabe is too small to possibly be valid");
        else {
            defaultBIOSImage = Arrays.copyOf(buf, len);
            MainClass.logger.info("Found ocmosbios.cabe");
        }
    }
    catch(IOException e) {
        MainClass.logger.error("IOException while loading ocmosbios.cabe", e);
    }
    if(defaultBIOSImage != null) {
        MainClass.setDefaultBIOSImage(defaultBIOSImage);
        Items.registerEEPROM("EEPROM (OCMOS BIOS)", defaultBIOSImage, null, false);
        // TODO: Get this to work some day, behind a config option
        /*
        ItemStack stack = new ItemStack(Items.get("eeprom").item());
        NBTTagCompound compound = new NBTTagCompound();
        compound.setByteArray("oc:eeprom", defaultBIOSImage);
        compound.setString("oc:label", "EEPROM (OCMOS BIOS)");
        stack.setTagCompound(compound);
        GameRegistry.addShapelessRecipe(stack, Items.get("eeprom").item(), net.minecraft.init.Items.feather);
        */
    }
}
项目:ThaumOres    文件:TOBlocks.java   
@Override
public void postInit(FMLPostInitializationEvent event) {
    for (int meta = 0; meta < 6; meta++) {
        OreDictionary.registerOre("oreInfused" + TOBlocks.primalNames[meta],
                new ItemStack(TOBlocks.netherrackInfusedOre, 1, meta));
        OreDictionary.registerOre("oreInfused" + TOBlocks.primalNames[meta],
                new ItemStack(TOBlocks.bedrockInfusedOre, 1, meta));
        OreDictionary.registerOre("oreInfused" + TOBlocks.primalNames[meta],
                new ItemStack(TOBlocks.endstoneInfusedOre, 1, meta));
    }
}
项目:ThaumOres    文件:TOThaum.java   
@Override
public void postInit(FMLPostInitializationEvent event) {
    initRecipes();
    for (int meta = 0; meta < 6; meta++) {
        addClusterAspect(primals[meta], meta);
        addInfusedOreAspect((BlockInfusedBlockOre) TOBlocks.netherrackInfusedOre, primals[meta], meta);
        addInfusedOreAspect((BlockInfusedBlockOre) TOBlocks.bedrockInfusedOre, primals[meta], meta);
        addInfusedOreAspect((BlockInfusedBlockOre) TOBlocks.endstoneInfusedOre, primals[meta], meta);
    }
    addInsusedOreWandEvent((BlockInfusedBlockOre) TOBlocks.netherrackInfusedOre);
    addInsusedOreWandEvent((BlockInfusedBlockOre) TOBlocks.bedrockInfusedOre);
    addInsusedOreWandEvent((BlockInfusedBlockOre) TOBlocks.endstoneInfusedOre);
    registerResearches();
}
项目:CustomNEIPlugins    文件:CustomNEIPlugins.java   
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
    if (event.getSide() == Side.CLIENT) {
        ConfigLoader.loadPlugins();
        NEIPluginConfig.loadConfigPostInit();
    }
}
项目:ExtraUtilities    文件:ExtraUtils.java   
public void postInit(final FMLPostInitializationEvent evt) {
    ForgeChunkManager.setForcedChunkLoadingCallback((Object)ExtraUtilsMod.instance, (ForgeChunkManager.LoadingCallback)new ChunkloadCallback());
    CommandTPSTimer.init();
    if (ExtraUtils.underdarkDimID != 0 && ExtraUtils.portalEnabled) {
        FMLCommonHandler.instance().bus().register((Object)new DarknessTickHandler());
    }
    if (ExtraUtils.divisionSigilEnabled && !ExtraUtils.disableDivisionSigilInChests) {
        this.addSigil("dungeonChest", 0.01);
        this.addSigil("mineshaftCorridor", 0.001);
        this.addSigil("pyramidDesertyChest", 0.02);
        this.addSigil("pyramidJungleChest", 0.05);
        this.addSigil("strongholdCrossing", 0.01);
        this.addSigil("strongholdCorridor", 0.01);
    }
    if (!ExtraUtils.disableEnderLiliesInDungeons && ExtraUtils.enderLily != null) {
        addDungeonItem(new ItemStack((Block)ExtraUtils.enderLily), 1, 5, "dungeonChest", 0.03);
    }
    ExtraUtilsMod.proxy.postInit();
    if (ExtraUtils.enderQuarryEnabled) {
        BlockBreakingRegistry.instance.setupBreaking();
    }
    DispenserStuff.registerItems();
    if (ExtraUtils.generatorEnabled) {
        TileEntityGeneratorPotion.genPotionLevels();
    }
    if (ExtraUtils.transferPipeEnabled) {
        TNHelper.initBlocks();
    }
    if (Loader.isModLoaded("Thaumcraft")) {
        ThaumcraftHelper.registerItems();
    }
    for (final ILoading loader : this.loaders) {
        loader.postInit();
    }
}
项目:4Space-5    文件:MarsModuleClient.java   
@Override
    public void postInit(FMLPostInitializationEvent event)
    {
        IModelCustom chamberModel = AdvancedModelLoader.loadModel(new ResourceLocation(MarsModule.ASSET_PREFIX, "models/chamber.obj"));
        IModelCustom cargoRocketModel = AdvancedModelLoader.loadModel(new ResourceLocation(MarsModule.ASSET_PREFIX, "models/cargoRocket.obj"));

        // Tile Entity Renderers
        ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTreasureChestMars.class, new TileEntityTreasureChestRenderer());
        ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCryogenicChamber.class, new TileEntityCryogenicChamberRenderer(chamberModel));
        ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTerraformer.class, new TileEntityBubbleProviderRenderer(0.25F, 1.0F, 0.25F));

        // Entities
        RenderingRegistry.registerEntityRenderingHandler(EntitySludgeling.class, new RenderSludgeling());
        RenderingRegistry.registerEntityRenderingHandler(EntitySlimeling.class, new RenderSlimeling());
        RenderingRegistry.registerEntityRenderingHandler(EntityCreeperBoss.class, new RenderCreeperBoss());
        RenderingRegistry.registerEntityRenderingHandler(EntityTier2Rocket.class, new RenderTier1Rocket(new ModelTier2Rocket(), MarsModule.ASSET_PREFIX, "rocketT2"));
//        RenderingRegistry.registerEntityRenderingHandler(EntityTerraformBubble.class, new RenderBubble(0.25F, 1.0F, 0.25F));
        RenderingRegistry.registerEntityRenderingHandler(EntityProjectileTNT.class, new RenderProjectileTNT());
        RenderingRegistry.registerEntityRenderingHandler(EntityLandingBalloons.class, new RenderLandingBalloons());
        RenderingRegistry.registerEntityRenderingHandler(EntityLandingBalloons.class, new RenderLandingBalloons());
        RenderingRegistry.registerEntityRenderingHandler(EntityCargoRocket.class, new RenderCargoRocket(cargoRocketModel));

        // Add Armor Renderer Prefix
        RenderingRegistry.addNewArmourRendererPrefix("desh");

        // Item Renderers
        MinecraftForgeClient.registerItemRenderer(MarsItems.spaceship, new ItemRendererTier2Rocket(cargoRocketModel));
        MinecraftForgeClient.registerItemRenderer(MarsItems.key, new ItemRendererKey(new ResourceLocation(MarsModule.ASSET_PREFIX, "textures/model/treasure.png")));
        MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(MarsBlocks.machine), new ItemRendererMachine(chamberModel));
    }
项目:4Space-5    文件:PlanetsProxyClient.java   
@Override
public void postInit(FMLPostInitializationEvent event)
{
    super.postInit(event);

    for (IPlanetsModuleClient module : GalacticraftPlanets.clientModules.values())
    {
        module.postInit(event);
    }
}
项目:4Space-5    文件:AsteroidsModuleClient.java   
@Override
public void postInit(FMLPostInitializationEvent event)
{
    RenderingRegistry.registerEntityRenderingHandler(EntitySmallAsteroid.class, new RenderSmallAsteroid());
    RenderingRegistry.registerEntityRenderingHandler(EntityGrapple.class, new RenderGrapple());
    IModelCustom podModel = AdvancedModelLoader.loadModel(new ResourceLocation(AsteroidsModule.ASSET_PREFIX, "models/pod.obj"));
    RenderingRegistry.registerEntityRenderingHandler(EntityEntryPod.class, new RenderEntryPod(podModel));
    IModelCustom rocketModel = AdvancedModelLoader.loadModel(new ResourceLocation(AsteroidsModule.ASSET_PREFIX, "models/tier3rocket.obj"));
    RenderingRegistry.registerEntityRenderingHandler(EntityTier3Rocket.class, new RenderTier3Rocket(rocketModel, AsteroidsModule.ASSET_PREFIX, "tier3rocket"));
    RenderingRegistry.registerEntityRenderingHandler(EntityAstroMiner.class, new RenderAstroMiner());
    IModelCustom grappleModel = AdvancedModelLoader.loadModel(new ResourceLocation(AsteroidsModule.ASSET_PREFIX, "models/grapple.obj"));
    MinecraftForgeClient.registerItemRenderer(AsteroidsItems.grapple, new ItemRendererGrappleHook(grappleModel));
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.beamReceiver), new ItemRendererBeamReceiver());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.beamReflector), new ItemRendererBeamReflector());
    MinecraftForgeClient.registerItemRenderer(AsteroidsItems.tier3Rocket, new ItemRendererTier3Rocket(rocketModel));
    MinecraftForgeClient.registerItemRenderer(AsteroidsItems.astroMiner, new ItemRendererAstroMiner());
    MinecraftForgeClient.registerItemRenderer(AsteroidsItems.thermalPadding, new ItemRendererThermalArmor());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.shortRangeTelepad), new ItemRendererShortRangeTelepad());
    MinecraftForgeClient.registerItemRenderer(AsteroidsItems.heavyNoseCone, new ItemRendererHeavyNoseCone());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.blockWalkway), new ItemRendererWalkway());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.blockWalkwayOxygenPipe), new ItemRendererWalkway());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.blockWalkwayWire), new ItemRendererWalkway());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBeamReflector.class, new TileEntityBeamReflectorRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBeamReceiver.class, new TileEntityBeamReceiverRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityMinerBase.class, new TileEntityMinerBaseRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityShortRangeTelepad.class, new TileEntityShortRangeTelepadRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTreasureChestAsteroids.class, new TileEntityTreasureChestRenderer());

    if (Loader.isModLoaded("craftguide"))
        CraftGuideIntegration.register();
}
项目:4Space-5    文件:ClientProxy.java   
@Override
public void postInit(FMLPostInitializationEvent event) {
    try {
        Field ftc = Minecraft.getMinecraft().getClass().getDeclaredField(VersionUtil.getNameDynamic(VersionUtil.KEY_FIELD_MUSICTICKER));
        ftc.setAccessible(true);
        ftc.set(Minecraft.getMinecraft(), MUSIC_HANDLER_SPACE);
    } catch (Exception e) {
        e.printStackTrace();
    }

    super.postInit(event);
}
项目:FTB-Islands    文件:FTBIslands.java   
@Mod.EventHandler
public void postInit(FMLPostInitializationEvent event) throws IOException {
    BufferedReader br = new BufferedReader(new FileReader(islands.getPath()));
    if (br.readLine() == null) {
        logger.info("Islands file empty, placing a default value.");
        IslandCreator.islandLocations.put("default", new IslandCreator.IslandPos(0, 60, 0));
        try {
            saveIslands(IslandCreator.islandLocations);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    br.close();
}
项目:MinecraftSolder    文件:MinecraftSolder.java   
@EventHandler
public void postinit(FMLPostInitializationEvent event) throws Exception {
    if(event.getSide().isServer() && solderConfig.isEnabled()){
        if(modpack.needsBuild()){
            modpack.build();
        }
    }
}
项目:BIGB    文件:BIGB.java   
/**
 * This is the third pass of logic in this mod.
 */
@Mod.EventHandler
public void postInit(FMLPostInitializationEvent event)
{
    PostInitEvent e;
    e = new PostInitEvent();
    e.Go(event);
}
项目:CheatyComputers    文件:CheatyComputers.java   
@EventHandler
public void postInit(FMLPostInitializationEvent e) {
    ScalaProxy.createRecipes();
    for(ShapedOreRecipe recipe : recipes) {
        GameRegistry.addRecipe(recipe);
    }
    //config.save();
}
项目:GTVeinLocator    文件:ClientProxy.java   
@Override
public void postInit(FMLPostInitializationEvent e) {
    super.postInit(e);
    JourneyMapHelper.init();
    XaeroMinimapHelper.init();
    LoadedModHelper.init();
}
项目:RorysMod    文件:ModItems.java   
@Override
public void postinit(FMLPostInitializationEvent event) {
    ItemStack tin = OreDictionary.getOres("dustTin").get(0);
    tin.stackSize = 3;
    ItemStack lead = OreDictionary.getOres("dustLead").get(0);
    lead.stackSize = 2;
    // Solder
    Register.addPulverizerRecipe(2400, new ItemStack(solderIngot), new ItemStack(solderDust));
    Register.addSmelterRecipe(4000, tin, lead, new ItemStack(solderIngot, 7));
}
项目:RorysMod    文件:ModBlocks.java   
@Override
public void postinit(FMLPostInitializationEvent event) {
    Register.addPulverizerRecipe(2400, new ItemStack(steelBlock), new ItemStack(RorysMod.items.steelDust, 9));
    Register.addPulverizerRecipe(2400, new ItemStack(solderBlock), new ItemStack(RorysMod.items.solderDust, 9));
    if (Loader.isModLoaded("ThermalExpansion")) {
        Register.addShapedRecipie(new ItemStack(renamer), new Object[] { " n ", "gmg", "csc", 'n', Items.name_tag, 'g', "blockGlass", 'm', "thermalexpansion:machineFrame", 'c', "gearCopper", 's', "plateSteel" });
    }
}
项目:FairyFactions    文件:FairyFactions.java   
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
    fairySpawner = new Spawner();
    // TODO: move these thresholds into config file
    final int maxNum = 18;
    final int freqNum = 8;
    fairySpawner.setMaxAnimals(maxNum);
    fairySpawner.AddCustomSpawn(EntityFairy.class, freqNum, EnumCreatureType.creature);
    FMLCommonHandler.instance().bus().register(fairySpawner);

       // TODO: register entity localization
    LOGGER.debug("Spawner is a modified version of CustomSpawner, created by DrZhark.");

    proxy.postInit();
}
项目:TWBB-Tweaks    文件:TwbbTweaks.java   
/**
 * Post-Init
 *
 * @param event
 */
@Mod.EventHandler
public void postInit (final FMLPostInitializationEvent event)
{
    CraftingRecipeTweaks.init();

    initBetterBeginningsCompat();
    initTConstructCompat();
    LogHelper.info("Post-Init Complete");
}
项目:TerrafirmaPunk-Tweaks    文件:TerraFirmaPunkTweaks.java   
@EventHandler
public void postInit(FMLPostInitializationEvent event)
{                   
    TFCTweaker.postInit();

    RecipeTweaks.SC2RecipeTweaks();
}
项目:AMTweaker    文件:AMTweaker.java   
@EventHandler
public void postInit(FMLPostInitializationEvent event)
{
    if (Loader.isModLoaded(EMT.MODID)) {
        EMTConfiguration.apply();
    }
}
项目:Steel-Industries    文件:SteelIndustries.java   
@Mod.EventHandler
public static void postInit(FMLPostInitializationEvent event)
{
    LogHelper.info("SteelIndustries: Starting PostInit");

    if(Loader.isModLoaded("Thaumcraft"))
    {
        ResearchHandler.init();
        LogHelper.info("SteelIndustries: Initialized ResearchHandler");
    }

    LogHelper.info("SteelIndustries: PostInit Complete");
    LogHelper.info("SteelIndustries: Ready to rock!");
}
项目:EE3-Compatiblity    文件:EE3Compatibility.java   
@Mod.EventHandler
public static void postinit(FMLPostInitializationEvent event) {
    BaseEE3.postInit(event);
    if (Loader.isModLoaded("IC2")) {
        IC2EE3.postInit(event);
    }
    MinecraftForge.EVENT_BUS.register(new EE3Compatibility());
}
项目:TheDarkEra    文件:TheDarkEra.java   
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
    logger.info("Loading " + TheDarkEra.NAME + " version " + TheDarkEra.VERSION + " Phase 3.");

    proxy.registerGuiHandler();
    proxy.registerRenderers();

    packetPipeline.postInitialize();

    logger.info(TheDarkEra.NAME + " version " + TheDarkEra.VERSION + " loaded Phase 3 successfully!");
}
项目:EnderIOAddons    文件:EnderIOAddons.java   
@Override
@EventHandler
public void init(FMLPostInitializationEvent event) {
  config.init(event);
  proxy.init(event);
  recipes.init(event);
  network.init(event);

  Ticker.create();
  Celeb11.create();
  Celeb24.create();
  Scheduler.instance.start();
}
项目:enhancedportals    文件:EnhancedPortals.java   
@EventHandler
@Override
public void postInit(FMLPostInitializationEvent event) {
    super.postInit(event);
    ComputerCraft.registerPeripheralProvider(EPBlocks.frame);
    creativeTab.setItem(new ItemStack(EPBlocks.portal, 1));
    ForgeChunkManager.setForcedChunkLoadingCallback(instance, this);
}
项目:TiM    文件:TModifiers.java   
@EventHandler
public void postInit(FMLPostInitializationEvent event){
    new Thread(){
        public void run(){
            LinkedList<ItemModifier> mods = new LinkedList<ItemModifier>();
            mods.addAll(ModifyBuilder.instance.itemModifiers);
            excreteModifiers(mods);
        }
    }.start();
}