Search in sources :

Example 1 with GregTech

use of powercrystals.minefactoryreloaded.setup.recipe.GregTech in project MineFactoryReloaded by powercrystals.

the class MineFactoryReloadedCore method postInit.

@PostInit
public void postInit(FMLPostInitializationEvent evt) {
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("milk", new LiquidStack(milkLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(Item.bucketMilk), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("sludge", new LiquidStack(sludgeLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(sludgeBucketItem), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("sewage", new LiquidStack(sewageLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(sewageBucketItem), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("mobEssence", new LiquidStack(essenceLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(mobEssenceBucketItem), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("biofuel", new LiquidStack(biofuelLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(bioFuelBucketItem), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("meat", new LiquidStack(meatLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(meatBucketItem), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("pinkslime", new LiquidStack(pinkSlimeLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(pinkSlimeBucketItem), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("chocolatemilk", new LiquidStack(chocolateMilkLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(chocolateMilkBucketItem), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("mushroomsoup", new LiquidStack(mushroomSoupLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(mushroomSoupBucketItem), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("mushroomsoup", new LiquidStack(mushroomSoupLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(Item.bowlSoup), new ItemStack(Item.bowlEmpty)));
    TileEntityUnifier.updateUnifierLiquids();
    for (ItemStack s : OreDictionary.getOres("itemRubber")) {
        FurnaceRecipes.smelting().addSmelting(s.itemID, s.getItemDamage(), new ItemStack(rawPlasticItem), 0.3F);
    }
    FurnaceRecipes.smelting().addSmelting(Item.sugar.itemID, new ItemStack(sugarCharcoalItem), 0.1F);
    FurnaceRecipes.smelting().addSmelting(meatIngotRawItem.itemID, new ItemStack(meatIngotCookedItem), 0.5F);
    FurnaceRecipes.smelting().addSmelting(meatNuggetRawItem.itemID, new ItemStack(meatNuggetCookedItem), 0.3F);
    String[] biomeWhitelist = MFRConfig.rubberTreeBiomeWhitelist.getString().split(",");
    for (String biome : biomeWhitelist) {
        MFRRegistry.registerRubberTreeBiome(biome);
    }
    String[] biomeBlacklist = MFRConfig.rubberTreeBiomeBlacklist.getString().split(",");
    for (String biome : biomeBlacklist) {
        MFRRegistry.getRubberTreeBiomes().remove(biome);
    }
    if (MFRConfig.vanillaRecipes.getBoolean(true)) {
        new Vanilla().registerRecipes();
    }
    if (MFRConfig.thermalExpansionRecipes.getBoolean(false)) {
        new ThermalExpansion().registerRecipes();
    }
    if (MFRConfig.gregTechRecipes.getBoolean(false)) {
        new GregTech().registerRecipes();
    }
    for (int i = 0; i < 14; i++) {
        FacadeManager.addFacade(new ItemStack(factoryDecorativeBrickBlock.blockID, 1, i));
    }
    for (int i = 0; i < 12; i++) {
        FacadeManager.addFacade(new ItemStack(factoryDecorativeStoneBlock.blockID, 1, i));
    }
    FacadeManager.addFacade(new ItemStack(factoryRoadBlock.blockID, 1, 0));
    FacadeManager.addFacade(new ItemStack(factoryRoadBlock.blockID, 1, 1));
    FacadeManager.addFacade(new ItemStack(factoryRoadBlock.blockID, 1, 4));
}
Also used : LiquidStack(net.minecraftforge.liquids.LiquidStack) GregTech(powercrystals.minefactoryreloaded.setup.recipe.GregTech) Vanilla(powercrystals.minefactoryreloaded.setup.recipe.Vanilla) LiquidContainerData(net.minecraftforge.liquids.LiquidContainerData) ThermalExpansion(powercrystals.minefactoryreloaded.setup.recipe.ThermalExpansion) ItemStack(net.minecraft.item.ItemStack) PostInit(cpw.mods.fml.common.Mod.PostInit)

Aggregations

PostInit (cpw.mods.fml.common.Mod.PostInit)1 ItemStack (net.minecraft.item.ItemStack)1 LiquidContainerData (net.minecraftforge.liquids.LiquidContainerData)1 LiquidStack (net.minecraftforge.liquids.LiquidStack)1 GregTech (powercrystals.minefactoryreloaded.setup.recipe.GregTech)1 ThermalExpansion (powercrystals.minefactoryreloaded.setup.recipe.ThermalExpansion)1 Vanilla (powercrystals.minefactoryreloaded.setup.recipe.Vanilla)1