Search in sources :

Example 1 with BlockPinkSlimeFluid

use of powercrystals.minefactoryreloaded.block.BlockPinkSlimeFluid in project MineFactoryReloaded by powercrystals.

the class MineFactoryReloadedCore method preInit.

@PreInit
public void preInit(FMLPreInitializationEvent evt) {
    setConfigFolderBase(evt.getModConfigurationDirectory());
    MFRConfig.loadCommonConfig(getCommonConfig());
    MFRConfig.loadClientConfig(getClientConfig());
    extractLang(new String[] { "en_US", "es_AR", "es_ES", "es_MX", "es_UY", "es_VE", "zh_CN", "zh_TW", "ru_RU", "ko_KR", "de_DE" });
    loadLang();
    milkLiquid = new BlockFactoryFluid(MFRConfig.milkStillBlockId.getInt(), "milk");
    sludgeLiquid = new BlockFactoryFluid(MFRConfig.sludgeStillBlockId.getInt(), "sludge");
    sewageLiquid = new BlockFactoryFluid(MFRConfig.sewageStillBlockId.getInt(), "sewage");
    essenceLiquid = new BlockFactoryFluid(MFRConfig.essenceStillBlockId.getInt(), "essence");
    biofuelLiquid = new BlockFactoryFluid(MFRConfig.biofuelStillBlockId.getInt(), "biofuel");
    meatLiquid = new BlockFactoryFluid(MFRConfig.meatStillBlockId.getInt(), "meat");
    pinkSlimeLiquid = new BlockPinkSlimeFluid(MFRConfig.pinkslimeStillBlockId.getInt(), "pinkslime");
    chocolateMilkLiquid = new BlockFactoryFluid(MFRConfig.chocolateMilkStillBlockId.getInt(), "chocolatemilk");
    mushroomSoupLiquid = new BlockFactoryFluid(MFRConfig.mushroomSoupStillBlockId.getInt(), "mushroomsoup");
    sewageBucketItem = (new ItemFactoryBucket(MFRConfig.sewageBucketItemId.getInt(), sewageLiquid.blockID)).setUnlocalizedName("mfr.bucket.sewage").setMaxStackSize(1).setContainerItem(Item.bucketEmpty);
    sludgeBucketItem = (new ItemFactoryBucket(MFRConfig.sludgeBucketItemId.getInt(), sludgeLiquid.blockID)).setUnlocalizedName("mfr.bucket.sludge").setMaxStackSize(1).setContainerItem(Item.bucketEmpty);
    mobEssenceBucketItem = (new ItemFactoryBucket(MFRConfig.mobEssenceBucketItemId.getInt(), essenceLiquid.blockID)).setUnlocalizedName("mfr.bucket.essence").setMaxStackSize(1).setContainerItem(Item.bucketEmpty);
    bioFuelBucketItem = (new ItemFactoryBucket(MFRConfig.bioFuelBucketItemId.getInt(), biofuelLiquid.blockID)).setUnlocalizedName("mfr.bucket.biofuel").setMaxStackSize(1).setContainerItem(Item.bucketEmpty);
    meatBucketItem = (new ItemFactoryBucket(MFRConfig.meatBucketItemId.getInt(), meatLiquid.blockID)).setUnlocalizedName("mfr.bucket.meat").setMaxStackSize(1).setContainerItem(Item.bucketEmpty);
    pinkSlimeBucketItem = (new ItemFactoryBucket(MFRConfig.pinkSlimeBucketItemId.getInt(), pinkSlimeLiquid.blockID)).setUnlocalizedName("mfr.bucket.pinkslime").setMaxStackSize(1).setContainerItem(Item.bucketEmpty);
    chocolateMilkBucketItem = (new ItemFactoryBucket(MFRConfig.chocolateMilkBucketItemId.getInt(), chocolateMilkLiquid.blockID)).setUnlocalizedName("mfr.bucket.chocolatemilk").setMaxStackSize(1).setContainerItem(Item.bucketEmpty);
    mushroomSoupBucketItem = (new ItemFactoryBucket(MFRConfig.mushroomSoupBucketItemId.getInt(), mushroomSoupLiquid.blockID)).setUnlocalizedName("mfr.bucket.mushroomsoup").setMaxStackSize(1).setContainerItem(Item.bucketEmpty);
    itemOffset = sewageBucketItem.itemID - MFRConfig.sewageBucketItemId.getInt();
    if (MFRConfig.vanillaOverrideMilkBucket.getBoolean(true)) {
        int milkBucketId = Item.bucketMilk.itemID;
        Item.itemsList[milkBucketId] = null;
        Item.bucketMilk = new ItemFactoryBucket(milkBucketId - itemOffset, milkLiquid.blockID).setUnlocalizedName("mfr.bucket.milk").setMaxStackSize(1).setContainerItem(Item.bucketEmpty);
    }
}
Also used : ItemFactoryBucket(powercrystals.minefactoryreloaded.item.ItemFactoryBucket) BlockFactoryFluid(powercrystals.minefactoryreloaded.block.BlockFactoryFluid) BlockPinkSlimeFluid(powercrystals.minefactoryreloaded.block.BlockPinkSlimeFluid) PreInit(cpw.mods.fml.common.Mod.PreInit)

Aggregations

PreInit (cpw.mods.fml.common.Mod.PreInit)1 BlockFactoryFluid (powercrystals.minefactoryreloaded.block.BlockFactoryFluid)1 BlockPinkSlimeFluid (powercrystals.minefactoryreloaded.block.BlockPinkSlimeFluid)1 ItemFactoryBucket (powercrystals.minefactoryreloaded.item.ItemFactoryBucket)1