Search in sources :

Example 1 with LiquidContainerData

use of net.minecraftforge.liquids.LiquidContainerData in project MineFactoryReloaded by powercrystals.

the class Forestry method postInit.

@PostInit
public static void postInit(FMLPostInitializationEvent e) {
    if (!Loader.isModLoaded("Forestry")) {
        return;
    }
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("milk", new LiquidStack(MineFactoryReloadedCore.milkLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(Item.bucketMilk), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("sludge", new LiquidStack(MineFactoryReloadedCore.sludgeLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(MineFactoryReloadedCore.sludgeBucketItem), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("sewage", new LiquidStack(MineFactoryReloadedCore.sewageLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(MineFactoryReloadedCore.sewageBucketItem), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("mobEssence", new LiquidStack(MineFactoryReloadedCore.essenceLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(MineFactoryReloadedCore.mobEssenceBucketItem), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("biofuel", new LiquidStack(MineFactoryReloadedCore.biofuelLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(MineFactoryReloadedCore.bioFuelBucketItem), new ItemStack(Item.bucketEmpty)));
    MineFactoryReloadedCore.proxy.onPostTextureStitch(null);
    ForestryUtils.setTreeRoot();
    TileEntityUnifier.updateUnifierLiquids();
}
Also used : LiquidStack(net.minecraftforge.liquids.LiquidStack) LiquidContainerData(net.minecraftforge.liquids.LiquidContainerData) ItemStack(net.minecraft.item.ItemStack) PostInit(cpw.mods.fml.common.Mod.PostInit)

Example 2 with LiquidContainerData

use of net.minecraftforge.liquids.LiquidContainerData in project MineFactoryReloaded by powercrystals.

the class ForestryPre method init.

@Init
public static void init(FMLInitializationEvent e) {
    if (!Loader.isModLoaded("Forestry")) {
        return;
    }
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("milk", new LiquidStack(MineFactoryReloadedCore.milkLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(Item.bucketMilk), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("sludge", new LiquidStack(MineFactoryReloadedCore.sludgeLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(MineFactoryReloadedCore.sludgeBucketItem), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("sewage", new LiquidStack(MineFactoryReloadedCore.sewageLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(MineFactoryReloadedCore.sewageBucketItem), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("mobEssence", new LiquidStack(MineFactoryReloadedCore.essenceLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(MineFactoryReloadedCore.mobEssenceBucketItem), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("biofuel", new LiquidStack(MineFactoryReloadedCore.biofuelLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(MineFactoryReloadedCore.bioFuelBucketItem), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("meat", new LiquidStack(MineFactoryReloadedCore.meatLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(MineFactoryReloadedCore.meatBucketItem), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("pinkslime", new LiquidStack(MineFactoryReloadedCore.pinkSlimeLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(MineFactoryReloadedCore.pinkSlimeBucketItem), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("chocolatemilk", new LiquidStack(MineFactoryReloadedCore.chocolateMilkLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(MineFactoryReloadedCore.chocolateMilkBucketItem), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("mushroomsoup", new LiquidStack(MineFactoryReloadedCore.mushroomSoupLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(MineFactoryReloadedCore.mushroomSoupBucketItem), new ItemStack(Item.bucketEmpty)));
    LiquidContainerRegistry.registerLiquid(new LiquidContainerData(LiquidDictionary.getOrCreateLiquid("mushroomsoup", new LiquidStack(MineFactoryReloadedCore.mushroomSoupLiquid, LiquidContainerRegistry.BUCKET_VOLUME)), new ItemStack(Item.bowlSoup), new ItemStack(Item.bowlEmpty)));
}
Also used : LiquidStack(net.minecraftforge.liquids.LiquidStack) LiquidContainerData(net.minecraftforge.liquids.LiquidContainerData) ItemStack(net.minecraft.item.ItemStack) Init(cpw.mods.fml.common.Mod.Init)

Example 3 with LiquidContainerData

use of net.minecraftforge.liquids.LiquidContainerData 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

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