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

EtFuturum.java 文件源码 项目:connor41-etfuturum2 阅读 24 收藏 0 点赞 0 评论 0
@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);
    }
}
ClientProxyCore.java 文件源码 项目:4Space-5 阅读 23 收藏 0 点赞 0 评论 0
@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();} 
 }
SpaceCore.java 文件源码 项目:4Space-5 阅读 22 收藏 0 点赞 0 评论 0
@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);
}
PostInitEvent.java 文件源码 项目:BIGB 阅读 15 收藏 0 点赞 0 评论 0
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.java 文件源码 项目:RorysMod 阅读 25 收藏 0 点赞 0 评论 0
@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();
}
EpicProportionsMod.java 文件源码 项目:PopularMMOS-EpicProportions-Mod 阅读 39 收藏 0 点赞 0 评论 0
@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.java 文件源码 项目:ae2ee3emcaddon 阅读 20 收藏 0 点赞 0 评论 0
@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.java 文件源码 项目:MagicBees 阅读 24 收藏 0 点赞 0 评论 0
@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");
}
BaseEE3.java 文件源码 项目:EE3-Compatiblity 阅读 16 收藏 0 点赞 0 评论 0
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);
}
EtFuturum.java 文件源码 项目:Et-Futurum 阅读 17 收藏 0 点赞 0 评论 0
@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);
    }
}
NovaMinecraft.java 文件源码 项目:NOVA-Core 阅读 31 收藏 0 点赞 0 评论 0
@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);
    }
}
Lustro.java 文件源码 项目:Minegate 阅读 18 收藏 0 点赞 0 评论 0
@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);
    }
}
MekanismGenerators.java 文件源码 项目:vsminecraft 阅读 24 收藏 0 点赞 0 评论 0
@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());
    }
}
ClientProxy.java 文件源码 项目:j6502 阅读 19 收藏 0 点赞 0 评论 0
@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);
        */
    }
}
TOBlocks.java 文件源码 项目:ThaumOres 阅读 15 收藏 0 点赞 0 评论 0
@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));
    }
}
TOThaum.java 文件源码 项目:ThaumOres 阅读 16 收藏 0 点赞 0 评论 0
@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.java 文件源码 项目:CustomNEIPlugins 阅读 14 收藏 0 点赞 0 评论 0
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
    if (event.getSide() == Side.CLIENT) {
        ConfigLoader.loadPlugins();
        NEIPluginConfig.loadConfigPostInit();
    }
}
ExtraUtils.java 文件源码 项目:ExtraUtilities 阅读 18 收藏 0 点赞 0 评论 0
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();
    }
}
MarsModuleClient.java 文件源码 项目:4Space-5 阅读 30 收藏 0 点赞 0 评论 0
@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));
    }
PlanetsProxyClient.java 文件源码 项目:4Space-5 阅读 20 收藏 0 点赞 0 评论 0
@Override
public void postInit(FMLPostInitializationEvent event)
{
    super.postInit(event);

    for (IPlanetsModuleClient module : GalacticraftPlanets.clientModules.values())
    {
        module.postInit(event);
    }
}
AsteroidsModuleClient.java 文件源码 项目:4Space-5 阅读 28 收藏 0 点赞 0 评论 0
@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();
}
ClientProxy.java 文件源码 项目:4Space-5 阅读 26 收藏 0 点赞 0 评论 0
@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);
}
FTBIslands.java 文件源码 项目:FTB-Islands 阅读 21 收藏 0 点赞 0 评论 0
@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.java 文件源码 项目:MinecraftSolder 阅读 22 收藏 0 点赞 0 评论 0
@EventHandler
public void postinit(FMLPostInitializationEvent event) throws Exception {
    if(event.getSide().isServer() && solderConfig.isEnabled()){
        if(modpack.needsBuild()){
            modpack.build();
        }
    }
}
BIGB.java 文件源码 项目:BIGB 阅读 21 收藏 0 点赞 0 评论 0
/**
 * 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.java 文件源码 项目:CheatyComputers 阅读 20 收藏 0 点赞 0 评论 0
@EventHandler
public void postInit(FMLPostInitializationEvent e) {
    ScalaProxy.createRecipes();
    for(ShapedOreRecipe recipe : recipes) {
        GameRegistry.addRecipe(recipe);
    }
    //config.save();
}
ClientProxy.java 文件源码 项目:GTVeinLocator 阅读 21 收藏 0 点赞 0 评论 0
@Override
public void postInit(FMLPostInitializationEvent e) {
    super.postInit(e);
    JourneyMapHelper.init();
    XaeroMinimapHelper.init();
    LoadedModHelper.init();
}
ModItems.java 文件源码 项目:RorysMod 阅读 26 收藏 0 点赞 0 评论 0
@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));
}
ModBlocks.java 文件源码 项目:RorysMod 阅读 24 收藏 0 点赞 0 评论 0
@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.java 文件源码 项目:FairyFactions 阅读 21 收藏 0 点赞 0 评论 0
@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();
}


问题


面经


文章

微信
公众号

扫码关注公众号