Package mods.railcraft.common.blocks.machine.alpha

Examples of mods.railcraft.common.blocks.machine.alpha.EnumMachineAlpha


    @Override
    public void initFirst() {
        ItemElectricMeter.register();
        BlockFrame.registerBlock();

        EnumMachineAlpha alpha = EnumMachineAlpha.TURBINE;
        if (alpha.register()) {
            CraftingPlugin.addShapedRecipe(alpha.getItem(3),
                    "BPB",
                    "P P",
                    "BPB",
                    'P', RailcraftItem.plate.getRecipeObject(EnumPlate.STEEL),
                    'B', "blockSteel");
View Full Code Here


        EnumMachineAlpha.STEAM_TRAP_AUTO.register();
    }

    @Override
    public void initSecond() {
        EnumMachineAlpha alpha = EnumMachineAlpha.STEAM_TRAP_MANUAL;
        if (alpha.isAvaliable()) {
            ItemStack stack = alpha.getItem();
            CraftingPlugin.addShapedRecipe(stack,
                    " G ",
                    " T ",
                    " D ",
                    'G', new ItemStack(Blocks.iron_bars),
                    'T', getTankItem(),
                    'D', new ItemStack(Blocks.dispenser));
        }

        alpha = EnumMachineAlpha.STEAM_TRAP_AUTO;
        if (alpha.isAvaliable()) {
            ItemStack stack = alpha.getItem();
            CraftingPlugin.addShapedRecipe(stack,
                    " G ",
                    "RTR",
                    " D ",
                    'G', new ItemStack(Blocks.iron_bars),
View Full Code Here

            CraftingPlugin.addShapedRecipe(gamma.getItem(),
                    "ML",
                    'M', Items.minecart,
                    'L', Blocks.dispenser);

        EnumMachineAlpha alpha = EnumMachineAlpha.FEED_STATION;
        if (alpha.register()) {
            ItemStack stack = alpha.getItem();
            CraftingPlugin.addShapedRecipe(stack, new Object[]{
                "PCP",
                "CSC",
                "PCP",
                'P', "plankWood",
                'S', ModuleManager.isModuleLoaded(ModuleManager.Module.FACTORY) ? RailcraftItem.plate.getRecipeObject(EnumPlate.STEEL) : new ItemStack(Blocks.iron_block),
                'C', new ItemStack(Items.golden_carrot)});

            MinecraftForge.EVENT_BUS.register(new TamingInteractHandler());
        }

        alpha = EnumMachineAlpha.TRADE_STATION;
        if (alpha.register()) {
            ItemStack stack = alpha.getItem();
            CraftingPlugin.addShapedRecipe(stack,
                    "SGS",
                    "EDE",
                    "SGS",
                    'D', new ItemStack(Blocks.dispenser),
View Full Code Here

                }
            }
        }

        RailcraftBlocks.registerBlockMachineAlpha();
        EnumMachineAlpha alpha = EnumMachineAlpha.SMOKER;
        if (RailcraftConfig.isSubBlockEnabled(alpha.getTag())) {
            ItemStack stack = alpha.getItem();
            CraftingPlugin.addShapedRecipe(stack,
                    " N ",
                    "RCR",
                    'N', new ItemStack(Blocks.netherrack),
                    'C', new ItemStack(Items.cauldron),
View Full Code Here

    private boolean tankCartEnabled = false;

    @Override
    public void initFirst() {
        EnumMachineAlpha alpha = EnumMachineAlpha.TANK_WATER;
        if (alpha.register())
            CraftingPlugin.addShapedRecipe(alpha.getItem(6),
                    "WWW",
                    "ISI",
                    "WWW",
                    'I', new ItemStack(Items.iron_ingot),
                    'S', new ItemStack(Items.slime_ball),
View Full Code Here

                    " I ",
                    "III",
                    'B', "blockSteel",
                    'I', "ingotSteel");

        EnumMachineAlpha alpha = EnumMachineAlpha.COKE_OVEN;
        if (alpha.register()) {
            ItemStack stack = alpha.getItem();
            CraftingPlugin.addShapedRecipe(stack,
                    "MBM",
                    "BMB",
                    "MBM",
                    'B', new ItemStack(Items.brick),
                    'M', new ItemStack(Blocks.sand));

            if (RailcraftToolItems.getCoalCoke() != null)
                RailcraftCraftingManager.cokeOven.addRecipe(new ItemStack(Items.coal, 1, 0), true, false, RailcraftToolItems.getCoalCoke(), Fluids.CREOSOTE.get(COKE_COOK_CREOSOTE), COKE_COOK_TIME);
        }

        alpha = EnumMachineAlpha.STEAM_OVEN;
        if (alpha.register())
            CraftingPlugin.addShapedRecipe(alpha.getItem(4),
                    "SSS",
                    "SFS",
                    "SSS",
                    'F', new ItemStack(Blocks.furnace),
                    'S', RailcraftItem.plate.getRecipeObject(EnumPlate.STEEL));

        alpha = EnumMachineAlpha.BLAST_FURNACE;
        if (alpha.register()) {
            ItemStack stack = alpha.getItem(4);
            CraftingPlugin.addShapedRecipe(stack,
                    "MBM",
                    "BPB",
                    "MBM",
                    'B', new ItemStack(Blocks.nether_brick),
                    'M', new ItemStack(Blocks.soul_sand),
                    'P', Items.magma_cream);

            int burnTime = 1280;
            ItemIngot.EnumIngot steel = ItemIngot.EnumIngot.STEEL;
            RailcraftCraftingManager.blastFurnace.addRecipe(new ItemStack(Items.iron_ingot), false, false, burnTime, ItemIngot.getIngot(steel, 1));

            RailcraftCraftingManager.blastFurnace.addRecipe(new ItemStack(Items.iron_helmet), true, false, burnTime * 5, ItemIngot.getIngot(steel, 5));
            RailcraftCraftingManager.blastFurnace.addRecipe(new ItemStack(Items.iron_chestplate), true, false, burnTime * 8, ItemIngot.getIngot(steel, 8));
            RailcraftCraftingManager.blastFurnace.addRecipe(new ItemStack(Items.iron_leggings), true, false, burnTime * 7, ItemIngot.getIngot(steel, 7));
            RailcraftCraftingManager.blastFurnace.addRecipe(new ItemStack(Items.iron_boots), true, false, burnTime * 4, ItemIngot.getIngot(steel, 4));

            RailcraftCraftingManager.blastFurnace.addRecipe(new ItemStack(Items.iron_horse_armor), true, false, burnTime * 4, ItemIngot.getIngot(steel, 4));

            RailcraftCraftingManager.blastFurnace.addRecipe(new ItemStack(Items.iron_sword), true, false, burnTime * 2, ItemIngot.getIngot(steel, 2));
            RailcraftCraftingManager.blastFurnace.addRecipe(new ItemStack(Items.iron_shovel), true, false, burnTime, ItemIngot.getIngot(steel, 1));
            RailcraftCraftingManager.blastFurnace.addRecipe(new ItemStack(Items.iron_pickaxe), true, false, burnTime * 3, ItemIngot.getIngot(steel, 3));
            RailcraftCraftingManager.blastFurnace.addRecipe(new ItemStack(Items.iron_axe), true, false, burnTime * 3, ItemIngot.getIngot(steel, 3));
            RailcraftCraftingManager.blastFurnace.addRecipe(new ItemStack(Items.iron_hoe), true, false, burnTime * 2, ItemIngot.getIngot(steel, 2));
            RailcraftCraftingManager.blastFurnace.addRecipe(new ItemStack(Items.shears), true, false, burnTime * 2, ItemIngot.getIngot(steel, 2));

            RailcraftCraftingManager.blastFurnace.addRecipe(ItemCrowbar.getItem(), true, false, burnTime * 3, ItemIngot.getIngot(steel, 3));

            RailcraftCraftingManager.blastFurnace.addRecipe(new ItemStack(Items.iron_door), false, false, burnTime * 6, ItemIngot.getIngot(steel, 6));

            int recycleTime = burnTime / 2;
            RailcraftCraftingManager.blastFurnace.addRecipe(RailcraftToolItems.getSteelHelm(), false, false, recycleTime * 4, ItemIngot.getIngot(steel, 4));
            RailcraftCraftingManager.blastFurnace.addRecipe(RailcraftToolItems.getSteelArmor(), false, false, recycleTime * 6, ItemIngot.getIngot(steel, 6));
            RailcraftCraftingManager.blastFurnace.addRecipe(RailcraftToolItems.getSteelLegs(), false, false, recycleTime * 5, ItemIngot.getIngot(steel, 5));
            RailcraftCraftingManager.blastFurnace.addRecipe(RailcraftToolItems.getSteelBoots(), false, false, recycleTime * 3, ItemIngot.getIngot(steel, 3));

            RailcraftCraftingManager.blastFurnace.addRecipe(RailcraftToolItems.getSteelSword(), false, false, recycleTime * 1, ItemIngot.getIngot(steel, 1));
            RailcraftCraftingManager.blastFurnace.addRecipe(RailcraftToolItems.getSteelPickaxe(), false, false, recycleTime * 2, ItemIngot.getIngot(steel, 2));
            RailcraftCraftingManager.blastFurnace.addRecipe(RailcraftToolItems.getSteelHoe(), false, false, recycleTime * 1, ItemIngot.getIngot(steel, 1));
            RailcraftCraftingManager.blastFurnace.addRecipe(RailcraftToolItems.getSteelAxe(), false, false, recycleTime * 2, ItemIngot.getIngot(steel, 2));
            RailcraftCraftingManager.blastFurnace.addRecipe(RailcraftToolItems.getSteelShears(), false, false, recycleTime * 1, ItemIngot.getIngot(steel, 1));
        }

        alpha = EnumMachineAlpha.ROCK_CRUSHER;
        if (alpha.register()) {
            ItemStack stack = alpha.getItem(4);
            CraftingPlugin.addShapedRecipe(stack,
                    "PDP",
                    "DSD",
                    "PDP",
                    'D', new ItemStack(Items.diamond),
                    'P', new ItemStack(Blocks.piston),
                    'S', "blockSteel");

            IRockCrusherRecipe recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.obsidian), false, false);
            recipe.addOutput(EnumCube.CRUSHED_OBSIDIAN.getItem(), 1.0f);
            recipe.addOutput(ItemDust.getDust(ItemDust.EnumDust.OBSIDIAN), 0.25f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(EnumCube.CRUSHED_OBSIDIAN.getItem(), true, false);
            recipe.addOutput(ItemDust.getDust(ItemDust.EnumDust.OBSIDIAN), 1.0f);
            recipe.addOutput(ItemDust.getDust(ItemDust.EnumDust.OBSIDIAN), 0.25f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(EnumMachineAlpha.COKE_OVEN.getItem(), true, false);
            recipe.addOutput(new ItemStack(Items.brick, 3), 1.0f);
            recipe.addOutput(new ItemStack(Items.brick), 0.5f);
            recipe.addOutput(new ItemStack(Blocks.sand), 0.25f);
            recipe.addOutput(new ItemStack(Blocks.sand), 0.25f);
            recipe.addOutput(new ItemStack(Blocks.sand), 0.25f);
            recipe.addOutput(new ItemStack(Blocks.sand), 0.25f);
            recipe.addOutput(new ItemStack(Blocks.sand), 0.25f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(EnumMachineAlpha.BLAST_FURNACE.getItem(), true, false);
            recipe.addOutput(new ItemStack(Blocks.nether_brick), 0.75f);
            recipe.addOutput(new ItemStack(Blocks.soul_sand), 0.75f);
            recipe.addOutput(new ItemStack(Items.blaze_powder), 0.05f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(EnumMachineAlpha.WORLD_ANCHOR.getItem(), true, false);
            recipe.addOutput(EnumCube.CRUSHED_OBSIDIAN.getItem(), 1.0f);
            recipe.addOutput(EnumCube.CRUSHED_OBSIDIAN.getItem(), 0.5f);
            recipe.addOutput(new ItemStack(Items.diamond), 0.5f);
            recipe.addOutput(new ItemStack(Blocks.obsidian), 0.25f);
            recipe.addOutput(ItemDust.getDust(ItemDust.EnumDust.OBSIDIAN), 0.25f);
            recipe.addOutput(new ItemStack(Items.gold_nugget, 16), 1.0f);
            recipe.addOutput(new ItemStack(Items.gold_nugget, 8), 0.5f);
            recipe.addOutput(new ItemStack(Items.gold_nugget, 8), 0.5f);
            recipe.addOutput(new ItemStack(Items.gold_nugget, 4), 0.5f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(EnumMachineAlpha.PERSONAL_ANCHOR.getItem(), true, false);
            recipe.addOutput(EnumCube.CRUSHED_OBSIDIAN.getItem(), 1.0f);
            recipe.addOutput(EnumCube.CRUSHED_OBSIDIAN.getItem(), 0.5f);
            recipe.addOutput(new ItemStack(Items.emerald), 0.5f);
            recipe.addOutput(new ItemStack(Blocks.obsidian), 0.25f);
            recipe.addOutput(ItemDust.getDust(ItemDust.EnumDust.OBSIDIAN), 0.25f);
            recipe.addOutput(new ItemStack(Items.gold_nugget, 16), 1.0f);
            recipe.addOutput(new ItemStack(Items.gold_nugget, 8), 0.5f);
            recipe.addOutput(new ItemStack(Items.gold_nugget, 8), 0.5f);
            recipe.addOutput(new ItemStack(Items.gold_nugget, 4), 0.5f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.cobblestone), false, false);
            recipe.addOutput(new ItemStack(Blocks.gravel), 1.0f);
            recipe.addOutput(new ItemStack(Items.flint), 0.10f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.mossy_cobblestone), false, false);
            recipe.addOutput(new ItemStack(Blocks.gravel), 1.0f);
            recipe.addOutput(new ItemStack(Blocks.vine), 0.10f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.gravel), false, false);
            recipe.addOutput(new ItemStack(Blocks.sand), 1.0f);
            recipe.addOutput(new ItemStack(Items.gold_nugget), 0.001f);
            recipe.addOutput(new ItemStack(Items.diamond), 0.00005f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.stone), false, false);
            recipe.addOutput(new ItemStack(Blocks.cobblestone), 1.0f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.sandstone), false, false);
            recipe.addOutput(new ItemStack(Blocks.sand, 4), 1.0f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.brick_block), false, false);
            recipe.addOutput(new ItemStack(Items.brick, 3), 1.0f);
            recipe.addOutput(new ItemStack(Items.brick), 0.5f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.clay), false, false);
            recipe.addOutput(new ItemStack(Items.clay_ball, 4), 1.0f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.stonebrick), false, false);
            recipe.addOutput(new ItemStack(Blocks.cobblestone), 1.0f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.stone_stairs), false, false);
            recipe.addOutput(new ItemStack(Blocks.gravel), 1.0f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.stone_brick_stairs), false, false);
            recipe.addOutput(new ItemStack(Blocks.cobblestone), 1.0f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.nether_brick_stairs), false, false);
            recipe.addOutput(new ItemStack(Blocks.nether_brick), 1.0f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.brick_stairs), false, false);
            recipe.addOutput(new ItemStack(Items.brick, 4), 1.0f);
            recipe.addOutput(new ItemStack(Items.brick), 0.5f);
            recipe.addOutput(new ItemStack(Items.brick), 0.5f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.stone_slab, 1, 0), true, false);
            recipe.addOutput(new ItemStack(Blocks.cobblestone), 0.45f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.stone_slab, 1, 1), true, false);
            recipe.addOutput(new ItemStack(Blocks.sand), 0.45f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.stone_slab, 1, 3), true, false);
            recipe.addOutput(new ItemStack(Blocks.gravel), 0.45f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.stone_slab, 1, 4), true, false);
            recipe.addOutput(new ItemStack(Items.brick), 1.0f);
            recipe.addOutput(new ItemStack(Items.brick), 0.75f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.stone_slab, 1, 5), true, false);
            recipe.addOutput(new ItemStack(Blocks.cobblestone), 0.45f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.ice), false, false);
            recipe.addOutput(new ItemStack(Blocks.snow), 0.85f);
            recipe.addOutput(new ItemStack(Items.snowball), 0.25f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.nether_brick_fence), false, false);
            recipe.addOutput(new ItemStack(Blocks.nether_brick), 1.0f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.glowstone), false, false);
            recipe.addOutput(new ItemStack(Items.glowstone_dust, 3), 1.0f);
            recipe.addOutput(new ItemStack(Items.glowstone_dust), 0.75f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Blocks.redstone_lamp), false, false);
            recipe.addOutput(new ItemStack(Items.glowstone_dust, 3), 1.0f);
            recipe.addOutput(new ItemStack(Items.glowstone_dust), 0.75f);
            recipe.addOutput(new ItemStack(Items.redstone, 3), 1.0f);
            recipe.addOutput(new ItemStack(Items.redstone), 0.75f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Items.bone), false, false);
            recipe.addOutput(new ItemStack(Items.dye, 4, 15), 1.0f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Items.blaze_rod), false, false);
            recipe.addOutput(new ItemStack(Items.blaze_powder, 2), 1.0f);
            recipe.addOutput(new ItemStack(Items.blaze_powder), 0.25f);
            recipe.addOutput(new ItemStack(Items.blaze_powder), 0.25f);
            recipe.addOutput(new ItemStack(Items.blaze_powder), 0.25f);

            recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(Items.coal, 1, 1), true, false);
            recipe.addOutput(ItemDust.getDust(ItemDust.EnumDust.CHARCOAL), 1.0f);
        }

        alpha = EnumMachineAlpha.ROLLING_MACHINE;
        if (alpha.register()) {
            ItemStack stack = alpha.getItem();
            CraftingPlugin.addShapedRecipe(stack,
                    "IPI",
                    "PCP",
                    "IPI",
                    'I', Items.iron_ingot,
View Full Code Here

    @Override
    public void initFirst() {
        ForgeChunkManager.setForcedChunkLoadingCallback(Railcraft.getMod(), ChunkManager.getInstance());
        MinecraftForge.EVENT_BUS.register(ChunkManager.getInstance());

        EnumMachineAlpha alpha = EnumMachineAlpha.WORLD_ANCHOR;
        if (RailcraftConfig.isSubBlockEnabled(alpha.getTag())) {
            RailcraftBlocks.registerBlockMachineAlpha();
            Block block = RailcraftBlocks.getBlockMachineAlpha();
            if (block != null) {
                ItemStack stack = alpha.getItem();

                if (RailcraftConfig.canCraftAnchors()) {
                    CraftingPlugin.addShapedRecipe(stack,
                            "gog",
                            "dpd",
                            "gog",
                            'd', Items.diamond,
                            'g', Items.gold_ingot,
                            'p', Items.ender_pearl,
                            'o', new ItemStack(Blocks.obsidian));
                }
            }
        }

        alpha = EnumMachineAlpha.PERSONAL_ANCHOR;
        if (RailcraftConfig.isSubBlockEnabled(alpha.getTag())) {
            RailcraftBlocks.registerBlockMachineAlpha();
            Block block = RailcraftBlocks.getBlockMachineAlpha();
            if (block != null) {
                ItemStack stack = alpha.getItem();

                if (RailcraftConfig.canCraftPersonalAnchors()) {
                    CraftingPlugin.addShapedRecipe(stack,
                            "gog",
                            "dpd",
                            "gog",
                            'd', Items.emerald,
                            'g', Items.gold_ingot,
                            'p', Items.ender_pearl,
                            'o', new ItemStack(Blocks.obsidian));
                }

            }
        }

        alpha = EnumMachineAlpha.ADMIN_ANCHOR;
        if (RailcraftConfig.isSubBlockEnabled(alpha.getTag())) {
            RailcraftBlocks.registerBlockMachineAlpha();
            Block block = RailcraftBlocks.getBlockMachineAlpha();
        }

        EnumMachineBeta beta = EnumMachineBeta.SENTINEL;
View Full Code Here

TOP

Related Classes of mods.railcraft.common.blocks.machine.alpha.EnumMachineAlpha

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.