Search in sources :

Example 11 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project MineFactoryReloaded by powercrystals.

the class Vanilla method registerConveyors.

protected void registerConveyors() {
    if (_registeredConveyors) {
        return;
    }
    _registeredConveyors = true;
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.conveyorBlock, 16, 16), new Object[] { "UUU", "RIR", 'U', "itemRubber", 'R', Item.redstone, 'I', Item.ingotIron }));
    for (int i = 0; i < 16; i++) {
        GameRegistry.addShapelessRecipe(new ItemStack(MineFactoryReloadedCore.conveyorBlock, 1, i), new ItemStack(MineFactoryReloadedCore.conveyorBlock, 1, 16), new ItemStack(MineFactoryReloadedCore.ceramicDyeItem, 1, i));
    }
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ItemStack(net.minecraft.item.ItemStack)

Example 12 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project MineFactoryReloaded by powercrystals.

the class Vanilla method registerVanillaImprovements.

protected void registerVanillaImprovements() {
    if (_registeredVanillaImprovements) {
        return;
    }
    _registeredVanillaImprovements = true;
    FurnaceRecipes.smelting().addSmelting(MineFactoryReloadedCore.rawRubberItem.itemID, 0, new ItemStack(MineFactoryReloadedCore.rubberBarItem), 0.1F);
    FurnaceRecipes.smelting().addSmelting(MineFactoryReloadedCore.rubberWoodBlock.blockID, 0, new ItemStack(Item.coal, 1, 1), 0.1F);
    GameRegistry.addShapelessRecipe(new ItemStack(Block.planks, 3, 3), new ItemStack(MineFactoryReloadedCore.rubberWoodBlock));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Block.torchWood, 4), new Object[] { "R", "S", 'R', MineFactoryReloadedCore.rawRubberItem, 'S', "stickWood" }));
    GameRegistry.addRecipe(new ItemStack(Block.pistonStickyBase), new Object[] { "R", "P", 'R', MineFactoryReloadedCore.rawRubberItem, 'P', Block.pistonBase });
    if (MFRConfig.vanillaOverrideIce.getBoolean(true)) {
        GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Block.ice, 1, 1), new ItemStack(Block.ice, 1, 0), "dustPlastic"));
    }
    if (MFRConfig.enableMossyCobbleRecipe.getBoolean(true)) {
        GameRegistry.addShapelessRecipe(new ItemStack(Block.cobblestoneMossy), new Object[] { Block.cobblestone, Item.bucketWater, Item.wheat });
    }
    GameRegistry.addShapelessRecipe(new ItemStack(MineFactoryReloadedCore.milkBottleItem), new Object[] { Item.bucketMilk, Item.glassBottle });
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Block.torchWood, 1), new Object[] { "C", "S", 'C', MineFactoryReloadedCore.sugarCharcoalItem, 'S', "stickWood" }));
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ShapelessOreRecipe(net.minecraftforge.oredict.ShapelessOreRecipe) ItemStack(net.minecraft.item.ItemStack)

Example 13 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project MineFactoryReloaded by powercrystals.

the class Vanilla method registerMachines.

protected void registerMachines() {
    if (_registeredMachines) {
        return;
    }
    _registeredMachines = true;
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBaseItem, 3), new Object[] { "PPP", "SSS", 'P', "sheetPlastic", 'S', Block.stone }));
    if (Machine.Planter.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 0), new Object[] { "GGG", "CPC", " M ", 'G', "sheetPlastic", 'P', Block.pistonBase, 'C', Item.flowerPot, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.Fisher.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 1), new Object[] { "GGG", "RRR", "BMB", 'G', "sheetPlastic", 'R', Item.fishingRod, 'B', Item.bucketEmpty, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.Harvester.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 2), new Object[] { "GGG", "SXS", " M ", 'G', "sheetPlastic", 'X', Item.axeGold, 'S', Item.shears, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.Rancher.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 3), new Object[] { "GGG", "SBS", " M ", 'G', "sheetPlastic", 'B', Item.bucketEmpty, 'S', Item.shears, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.Fertilizer.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 4), new Object[] { "GGG", "LBL", " M ", 'G', "sheetPlastic", 'L', Item.leather, 'B', Item.glassBottle, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.Vet.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 5), new Object[] { "GGG", "SSS", "EME", 'G', "sheetPlastic", 'E', Item.spiderEye, 'S', MineFactoryReloadedCore.syringeEmptyItem, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.ItemCollector.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 8, 6), new Object[] { "GGG", " C ", " M ", 'G', "sheetPlastic", 'C', Block.chest, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.BlockBreaker.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 7), new Object[] { "GGG", "PHS", " M ", 'G', "sheetPlastic", 'P', Item.pickaxeGold, 'H', MineFactoryReloadedCore.factoryHammerItem, 'S', Item.shovelGold, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.WeatherCollector.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 8), new Object[] { "GGG", "BBB", "UMU", 'G', "sheetPlastic", 'B', Block.fenceIron, 'U', Item.bucketEmpty, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.SludgeBoiler.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 9), new Object[] { "GGG", "FFF", " M ", 'G', "sheetPlastic", 'F', Block.furnaceIdle, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.Sewer.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 4, 10), new Object[] { "GGG", "BUB", "BMB", 'G', "sheetPlastic", 'B', Item.brick, 'U', Item.bucketEmpty, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.Composter.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 11), new Object[] { "GGG", "PFP", " M ", 'G', "sheetPlastic", 'P', Block.pistonBase, 'F', Block.furnaceIdle, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.Breeder.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 12), new Object[] { "GGG", "CAC", "PMP", 'G', "sheetPlastic", 'P', new ItemStack(Item.dyePowder, 1, 5), 'C', Item.goldenCarrot, 'A', Item.appleGold, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.Grinder.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 13), new Object[] { "GGG", "BSP", " M ", 'G', "sheetPlastic", 'P', Block.pistonBase, 'B', Item.book, 'S', Item.swordGold, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.AutoEnchanter.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 14), new Object[] { "GGG", "BBB", "DMD", 'G', "sheetPlastic", 'B', Item.book, 'D', Item.diamond, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.Chronotyper.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(0), 1, 15), new Object[] { "GGG", "EEE", "PMP", 'G', "sheetPlastic", 'E', Item.emerald, 'P', new ItemStack(Item.dyePowder, 1, 5), 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.Ejector.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 8, 0), new Object[] { "GGG", " D ", "RMR", 'G', "sheetPlastic", 'D', Block.dispenser, 'R', Item.redstone, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.ItemRouter.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 8, 1), new Object[] { "GGG", "RCR", " M ", 'G', "sheetPlastic", 'C', Block.chest, 'R', Item.redstoneRepeater, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.LiquidRouter.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 8, 2), new Object[] { "GGG", "RBR", "BMB", 'G', "sheetPlastic", 'B', Item.bucketEmpty, 'R', Item.redstoneRepeater, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.DeepStorageUnit.getIsRecipeEnabled()) {
        int dsuCount = MFRConfig.craftSingleDSU.getBoolean(false) ? 1 : 4;
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), dsuCount, 3), new Object[] { "GGG", "PPP", "EME", 'G', "sheetPlastic", 'P', Item.enderPearl, 'E', Item.eyeOfEnder, 'M', MineFactoryReloadedCore.machineBaseItem }));
        if (MFRConfig.enableCheapDSU.getBoolean(false)) {
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 3), new Object[] { "GGG", "CCC", "CMC", 'G', "sheetPlastic", 'C', Block.chest, 'M', MineFactoryReloadedCore.machineBaseItem }));
        }
    }
    if (Machine.LiquiCrafter.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 4), new Object[] { "GGG", "BWB", "FMF", 'G', "sheetPlastic", 'B', Item.bucketEmpty, 'W', Block.workbench, 'F', Item.itemFrame, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.LavaFabricator.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 5), new Object[] { "GGG", "OBO", "CMC", 'G', "sheetPlastic", 'O', Block.obsidian, 'B', Item.blazeRod, 'C', Item.magmaCream, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.OilFabricator.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 6), new Object[] { "GGG", "OTO", "OMO", 'G', "sheetPlastic", 'O', Block.obsidian, 'T', Block.tnt, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.AutoJukebox.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 7), new Object[] { "GGG", " J ", " M ", 'G', "sheetPlastic", 'J', Block.jukebox, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.Unifier.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 8), new Object[] { "GGG", "CBC", " M ", 'G', "sheetPlastic", 'B', Item.book, 'C', Item.comparator, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.AutoSpawner.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 9), new Object[] { "GGG", "ECE", "NMS", 'G', "sheetPlastic", 'E', Item.emerald, 'C', Item.magmaCream, 'N', Item.netherStalkSeeds, 'S', Item.sugar, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.BioReactor.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 10), new Object[] { "GGG", "UEU", "SMS", 'G', "sheetPlastic", 'U', Item.sugar, 'E', Item.fermentedSpiderEye, 'S', Item.slimeBall, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.BioFuelGenerator.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 11), new Object[] { "GGG", "PFP", "RMR", 'G', "sheetPlastic", 'F', Block.furnaceIdle, 'P', Block.pistonBase, 'R', Item.blazeRod, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.AutoDisenchanter.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 12), new Object[] { "GGG", "RDR", "BMB", 'G', "sheetPlastic", 'B', Item.book, 'D', Item.diamond, 'R', Block.netherBrick, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.Slaughterhouse.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 13), new Object[] { "GGG", "SSS", "XMX", 'G', "sheetPlastic", 'S', Item.swordGold, 'X', Item.axeGold, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.MeatPacker.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 14), new Object[] { "GGG", "BFB", "BMB", 'G', "sheetPlastic", 'B', Block.brick, 'F', Item.flintAndSteel, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.EnchantmentRouter.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(1), 1, 15), new Object[] { "GGG", "RBR", " M ", 'G', "sheetPlastic", 'B', Item.book, 'R', Item.redstoneRepeater, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.LaserDrill.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(2), 1, 0), new Object[] { "GGG", "LLL", "DMD", 'G', "sheetPlastic", 'L', Block.glowStone, 'D', Item.diamond, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.LaserDrillPrecharger.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(2), 1, 1), new Object[] { "GGG", "LSL", "DMD", 'G', "sheetPlastic", 'L', Block.glowStone, 'D', Item.diamond, 'S', MineFactoryReloadedCore.pinkSlimeballItem, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.AutoAnvil.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(2), 1, 2), new Object[] { "GGG", "AAA", " M ", 'G', "sheetPlastic", 'A', Block.anvil, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.BlockSmasher.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(2), 1, 3), new Object[] { "GGG", "HHH", "BMB", 'G', "sheetPlastic", 'H', MineFactoryReloadedCore.factoryHammerItem, 'B', Item.book, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.RedNote.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(2), 1, 4), new Object[] { "GGG", "CNC", " M ", 'G', "sheetPlastic", 'C', MineFactoryReloadedCore.rednetCableBlock, 'N', Block.music, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.AutoBrewer.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(2), 1, 5), new Object[] { "GGG", "CBC", "RMR", 'G', "sheetPlastic", 'C', Block.chest, 'B', Item.brewingStand, 'R', Item.redstoneRepeater, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.FruitPicker.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(2), 1, 6), new Object[] { "GGG", "SXS", "SMS", 'G', "sheetPlastic", 'X', Item.axeGold, 'S', Item.shears, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.BlockPlacer.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(2), 1, 6), new Object[] { "GGG", "DDD", " M ", 'G', "sheetPlastic", 'D', Block.dropper, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
    if (Machine.MobCounter.getIsRecipeEnabled()) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.machineBlocks.get(2), 1, 6), new Object[] { "GGG", "RCR", "SMS", 'G', "sheetPlastic", 'R', Item.redstoneRepeater, 'C', Item.comparator, 'S', MineFactoryReloadedCore.spyglassItem, 'M', MineFactoryReloadedCore.machineBaseItem }));
    }
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ItemStack(net.minecraft.item.ItemStack)

Example 14 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project MineFactoryReloaded by powercrystals.

the class Vanilla method registerRails.

protected void registerRails() {
    if (_registeredRails) {
        return;
    }
    _registeredRails = true;
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.railPickupCargoBlock, 2), new Object[] { " C ", "SDS", "SSS", 'C', Block.chest, 'S', "sheetPlastic", 'D', Block.railDetector }));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.railDropoffCargoBlock, 2), new Object[] { "SSS", "SDS", " C ", 'C', Block.chest, 'S', "sheetPlastic", 'D', Block.railDetector }));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.railPickupPassengerBlock, 3), new Object[] { " L ", "SDS", "SSS", 'L', Block.blockLapis, 'S', "sheetPlastic", 'D', Block.railDetector }));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.railDropoffPassengerBlock, 3), new Object[] { "SSS", "SDS", " L ", 'L', Block.blockLapis, 'S', "sheetPlastic", 'D', Block.railDetector }));
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ItemStack(net.minecraft.item.ItemStack)

Example 15 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project MineFactoryReloaded by powercrystals.

the class Vanilla method registerMachineUpgrades.

protected void registerMachineUpgrades() {
    if (_registeredMachineUpgrades) {
        return;
    }
    _registeredMachineUpgrades = true;
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 0), new Object[] { "III", "PPP", "RGR", 'I', "dyeBlue", 'P', "dustPlastic", 'R', Item.redstone, 'G', Item.goldNugget }));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 1), new Object[] { "III", "PPP", "RGR", 'I', Item.ingotIron, 'P', "dustPlastic", 'R', Item.redstone, 'G', Item.goldNugget }));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 2), new Object[] { "III", "PPP", "RGR", 'I', "ingotTin", 'P', "dustPlastic", 'R', Item.redstone, 'G', Item.goldNugget }));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 3), new Object[] { "III", "PPP", "RGR", 'I', "ingotCopper", 'P', "dustPlastic", 'R', Item.redstone, 'G', Item.goldNugget }));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 4), new Object[] { "III", "PPP", "RGR", 'I', "ingotBronze", 'P', "dustPlastic", 'R', Item.redstone, 'G', Item.goldNugget }));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 5), new Object[] { "III", "PPP", "RGR", 'I', "ingotSilver", 'P', "dustPlastic", 'R', Item.redstone, 'G', Item.goldNugget }));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 6), new Object[] { "III", "PPP", "RGR", 'I', Item.ingotGold, 'P', "dustPlastic", 'R', Item.redstone, 'G', Item.goldNugget }));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 7), new Object[] { "III", "PPP", "RGR", 'I', Item.netherQuartz, 'P', "dustPlastic", 'R', Item.redstone, 'G', Item.goldNugget }));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 8), new Object[] { "III", "PPP", "RGR", 'I', Item.diamond, 'P', "dustPlastic", 'R', Item.redstone, 'G', Item.goldNugget }));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 9), new Object[] { "III", "PPP", "RGR", 'I', "ingotPlatinum", 'P', "dustPlastic", 'R', Item.redstone, 'G', Item.goldNugget }));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.upgradeItem, 1, 10), new Object[] { "III", "PPP", "RGR", 'I', Item.emerald, 'P', "dustPlastic", 'R', Item.redstone, 'G', Item.goldNugget }));
    for (int i = 0; i < 16; i++) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MineFactoryReloadedCore.laserFocusItem, 1, i), new Object[] { "ENE", "NGN", "ENE", 'E', Item.emerald, 'N', Item.goldNugget, 'G', new ItemStack(MineFactoryReloadedCore.factoryGlassPaneBlock, 1, i) }));
    }
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ItemStack(net.minecraft.item.ItemStack)

Aggregations

ShapedOreRecipe (net.minecraftforge.oredict.ShapedOreRecipe)72 ItemStack (net.minecraft.item.ItemStack)62 ShapelessOreRecipe (net.minecraftforge.oredict.ShapelessOreRecipe)19 IRecipe (net.minecraft.item.crafting.IRecipe)7 ArrayList (java.util.ArrayList)5 Item (net.minecraft.item.Item)5 ShapedRecipes (net.minecraft.item.crafting.ShapedRecipes)5 ResourceLocation (net.minecraft.util.ResourceLocation)5 List (java.util.List)4 Block (net.minecraft.block.Block)4 ShapelessRecipes (net.minecraft.item.crafting.ShapelessRecipes)3 Book (amerifrance.guideapi.api.impl.Book)2 CategoryAbstract (amerifrance.guideapi.api.impl.abstraction.CategoryAbstract)2 CategoryItemStack (amerifrance.guideapi.category.CategoryItemStack)2 EntryItemStack (amerifrance.guideapi.entry.EntryItemStack)2 PageFurnaceRecipe (amerifrance.guideapi.page.PageFurnaceRecipe)2 PageIRecipe (amerifrance.guideapi.page.PageIRecipe)2 PageText (amerifrance.guideapi.page.PageText)2 EnumDyeColor (net.minecraft.item.EnumDyeColor)2 SpellRecipeItemsEvent (am2.api.events.SpellRecipeItemsEvent)1