Package mods.railcraft.common.carts

Examples of mods.railcraft.common.carts.EnumCart


                    'P', Blocks.stone_pressure_plate);
        }

        ItemStack batbox = IC2Plugin.getItem("batBox");
        if (batbox != null) {
            EnumCart cart = EnumCart.ENERGY_BATBOX;
            cart.setContents(batbox);
            ItemStack stack = cart.getCartItem();
            if (stack != null) {
                CraftingPlugin.addShapedRecipe(stack, new Object[]{
                    "E",
                    "M",
                    'E', batbox,
                    'M', Items.minecart
                });
                CraftingPlugin.addShapelessRecipe(new ItemStack(Items.minecart), stack);
            }
        }

        ItemStack cesu = IC2Plugin.getItem("cesuUnit");
        if (cesu != null) {
            EnumCart cart = EnumCart.ENERGY_CESU;
            cart.setContents(batbox);
            ItemStack stack = cart.getCartItem();
            if (stack != null) {
                CraftingPlugin.addShapedRecipe(stack, new Object[]{
                    "E",
                    "M",
                    'E', cesu,
                    'M', Items.minecart
                });
                CraftingPlugin.addShapelessRecipe(new ItemStack(Items.minecart), stack);
            }
        }

        ItemStack mfe = IC2Plugin.getItem("mfeUnit");
        if (mfe != null) {
            EnumCart cart = EnumCart.ENERGY_MFE;
            cart.setContents(batbox);
            ItemStack stack = cart.getCartItem();
            if (stack != null) {
                CraftingPlugin.addShapedRecipe(stack, new Object[]{
                    "E",
                    "M",
                    'E', mfe,
View Full Code Here


    public void initFirst() {
        RailcraftBlocks.registerBlockTrack();
        RailcraftBlocks.registerBlockRailElevator();

        // Define Wood TNT Cart
        EnumCart cart = EnumCart.TNT_WOOD;
        if (cart.setup()) {
            CraftingPlugin.addShapedRecipe(cart.getCartItem(),
                    "WTW",
                    "WWW",
                    'T', Blocks.tnt,
                    'W', "slabWood");
            LootPlugin.addLootRailway(cart.getCartItem(), 1, 3, cart.getTag());
        }

        // Define Work Cart
        cart = EnumCart.WORK;
        if (cart.setup()) {
            CraftingPlugin.addShapedRecipe(cart.getCartItem(),
                    "B",
                    "M",
                    'B', Blocks.crafting_table,
                    'M', Items.minecart);
            CraftingPlugin.addShapelessRecipe(new ItemStack(Items.minecart), cart.getCartItem());
            LootPlugin.addLootRailway(cart.getCartItem(), 1, 1, cart.getTag());
        }

        Block blockTrack = RailcraftBlocks.getBlockTrack();
        if (blockTrack != null) {
            MiscTools.registerTrack(EnumTrack.PRIMING);
View Full Code Here

                    'E', Items.emerald,
                    'S', ModuleManager.isModuleLoaded(ModuleManager.Module.FACTORY) ? RailcraftItem.plate.getRecipeObject(EnumPlate.STEEL) : new ItemStack(Blocks.iron_block));
        }

        // Define Bore
        EnumCart cart = EnumCart.BORE;
        if (cart.setup()) {
            CraftingPlugin.addShapedRecipe(cart.getCartItem(),
                    "ICI",
                    "FCF",
                    " S ",
                    'I', "blockSteel",
                    'S', Items.chest_minecart,
                    'F', Blocks.furnace,
                    'C', Items.minecart);

            String tag = "tool.bore.head.diamond";
            if (RailcraftConfig.isItemEnabled(tag)) {
                Item item = new ItemBoreHeadDiamond();
                ItemRegistry.registerItem(item);
                CraftingPlugin.addShapedRecipe(new ItemStack(item),
                        "III",
                        "IDI",
                        "III",
                        'I', "ingotSteel",
                        'D', Blocks.diamond_block);
                ItemRegistry.registerItemStack(tag, new ItemStack(item));
            }

            tag = "tool.bore.head.steel";
            if (RailcraftConfig.isItemEnabled(tag)) {
                Item item = new ItemBoreHeadSteel();
                ItemRegistry.registerItem(item);
                CraftingPlugin.addShapedRecipe(new ItemStack(item),
                        "III",
                        "IDI",
                        "III",
                        'I', "ingotSteel",
                        'D', "blockSteel");
                ItemRegistry.registerItemStack(tag, new ItemStack(item));
            }

            tag = "tool.bore.head.iron";
            if (RailcraftConfig.isItemEnabled(tag)) {
                Item item = new ItemBoreHeadIron();
                ItemRegistry.registerItem(item);
                CraftingPlugin.addShapedRecipe(new ItemStack(item),
                        "III",
                        "IDI",
                        "III",
                        'I', "ingotSteel",
                        'D', Blocks.iron_block);
                ItemRegistry.registerItemStack(tag, new ItemStack(item));
            }
        }

        // Define Track Relayer Cart
        cart = EnumCart.TRACK_RELAYER;
        if (cart.setup())
            CraftingPlugin.addShapedRecipe(cart.getCartItem(),
                    "YLY",
                    "RSR",
                    "DMD",
                    'L', new ItemStack(Blocks.redstone_lamp),
                    'Y', "dyeYellow",
                    'R', new ItemStack(Items.blaze_rod),
                    'D', new ItemStack(Items.diamond_pickaxe),
                    'S', "blockSteel",
                    'M', new ItemStack(Items.minecart));

        // Define Undercutter Cart
        cart = EnumCart.UNDERCUTTER;
        if (cart.setup())
            CraftingPlugin.addShapedRecipe(cart.getCartItem(),
                    "YLY",
                    "RSR",
                    "DMD",
                    'L', new ItemStack(Blocks.redstone_lamp),
                    'Y', "dyeYellow",
View Full Code Here

            ItemStack stack = craftMatrix.getStackInSlot(i);
            if (stack != null) {
                count++;
                if (stack.getItem() == ItemFirestoneCracked.item)
                    craftMatrix.setInventorySlotContents(i, null);
                EnumCart cartType = EnumCart.getCartType(stack);
                if (cartType != null && cartType != EnumCart.BASIC)
                    cartItem = stack;
            }
        }
        if (cartItem != null) {
View Full Code Here

        MiscTools.registerTrack(EnumTrack.LOCOMOTIVE);
        MiscTools.registerTrack(EnumTrack.LIMITER);

        ItemWhistleTuner.registerItem();

        EnumCart cart = EnumCart.LOCO_STEAM_SOLID;
        if (cart.setup()) {
            paintLocomotive(cart.getCartItem());

            ItemStack tank;
            if (EnumMachineBeta.BOILER_TANK_HIGH_PRESSURE.isAvaliable())
                tank = EnumMachineBeta.BOILER_TANK_HIGH_PRESSURE.getItem();
            else if (EnumMachineBeta.BOILER_TANK_LOW_PRESSURE.isAvaliable())
                tank = EnumMachineBeta.BOILER_TANK_LOW_PRESSURE.getItem();
            else if (EnumMachineBeta.TANK_IRON_WALL.isAvaliable())
                tank = EnumMachineBeta.TANK_IRON_WALL.getItem();
            else if (ItemIngot.getIngot(ItemIngot.EnumIngot.STEEL) != null)
                tank = ItemIngot.getIngot(ItemIngot.EnumIngot.STEEL);
            else
                tank = new ItemStack(Items.iron_ingot);

            ItemStack firebox;
            if (EnumMachineBeta.BOILER_FIREBOX_SOLID.isAvaliable())
                firebox = EnumMachineBeta.BOILER_FIREBOX_SOLID.getItem();
            else if (EnumMachineAlpha.BLAST_FURNACE.isAvaliable())
                firebox = EnumMachineAlpha.BLAST_FURNACE.getItem();
            else
                firebox = new ItemStack(Blocks.furnace);

            CraftingPlugin.addShapedRecipe(cart.getCartItem(),
                    "TTF",
                    "TTF",
                    "BMM",
                    'T', tank,
                    'F', firebox,
                    'M', Items.minecart,
                    'B', new ItemStack(Blocks.iron_bars));
        }

        cart = EnumCart.LOCO_ELECTRIC;
        if (cart.setup())
            paintLocomotive(cart.getCartItem());
    }
View Full Code Here

                }
            }
        }

        // Define Anchor Cart
        EnumCart cart = EnumCart.ANCHOR;
        if (EnumMachineAlpha.WORLD_ANCHOR.isAvaliable() && cart.setup()) {
            ItemStack anchor = EnumMachineAlpha.WORLD_ANCHOR.getItem();
            if (RailcraftConfig.canCraftPersonalAnchors()) {
                CraftingPlugin.addShapedRecipe(cart.getCartItem(),
                        "A",
                        "M",
                        'A', anchor,
                        'M', Items.minecart);
                CraftingPlugin.addShapelessRecipe(new ItemStack(Items.minecart), cart.getCartItem());
            }
            cart.setContents(anchor);
        }


        // Define Personal Anchor Cart
        cart = EnumCart.ANCHOR_PERSONAL;
        if (EnumMachineAlpha.PERSONAL_ANCHOR.isAvaliable() && cart.setup()) {
            ItemStack anchor = EnumMachineAlpha.PERSONAL_ANCHOR.getItem();
            if (RailcraftConfig.canCraftPersonalAnchors()) {
                CraftingPlugin.addShapedRecipe(cart.getCartItem(),
                        "A",
                        "M",
                        'A', anchor,
                        'M', Items.minecart);
                CraftingPlugin.addShapelessRecipe(new ItemStack(Items.minecart), cart.getCartItem());
            }
            cart.setContents(anchor);
        }

        // Define Admin Anchor Cart
        cart = EnumCart.ANCHOR_ADMIN;
        if (EnumMachineAlpha.ADMIN_ANCHOR.isAvaliable() && cart.setup()) {
            ItemStack anchor = EnumMachineAlpha.ADMIN_ANCHOR.getItem();
            cart.setContents(anchor);
        }
    }
View Full Code Here

//                "IWI",
//                "PPP",
//                'I', new ItemStack(Block.fenceIron),
//                'W', new ItemStack(Item.wheat),
//                'P', ItemPlate.getPlate(ItemPlate.EnumPlate.STEEL));
        EnumCart cart = EnumCart.TANK;

        if (cart.setup()) {
            tankCartEnabled = true;
            if (EnumMachineBeta.TANK_IRON_GAUGE.isAvaliable()) {
                CraftingPlugin.addShapedRecipe(cart.getCartItem(),
                        "T",
                        "M",
                        'T', EnumMachineBeta.TANK_IRON_GAUGE.getItem(),
                        'M', Items.minecart);
                cart.setContents(getColorTank(EnumMachineBeta.TANK_IRON_GAUGE, EnumColor.WHITE, 1));
            } else {
                CraftingPlugin.addShapedRecipe(cart.getCartItem(),
                        "GGG",
                        "GMG",
                        "GGG",
                        'G', new ItemStack(Blocks.glass),
                        'M', Items.minecart);
                cart.setContents(new ItemStack(Blocks.glass, 8));
            }
            CraftingPlugin.addShapelessRecipe(new ItemStack(Items.minecart), cart.getCartItem());
            CraftingPlugin.addRecipe(new TankCartFilterRecipe());
        }

    }
View Full Code Here

    @Override
    public void initFirst() {

        // Define Pumpkin Cart
        EnumCart cart = EnumCart.PUMPKIN;
        if (cart.setup()) {
            Calendar cal = Calendar.getInstance();
            int month = cal.get(Calendar.MONTH);
            if (month == Calendar.OCTOBER || month == Calendar.NOVEMBER) {
                Game.log(Level.INFO, "Activating Halloween Seasonal Pack");
                CraftingPlugin.addShapedRecipe(cart.getCartItem(), new Object[]{
                            "GGG",
                            "WPW",
                            "WWW",
                            'G', new ItemStack(Items.gunpowder),
                            'P', new ItemStack(Blocks.pumpkin),
                            'W', "slabWood"
                        });
            }
        }

        // Define Gift Cart
        cart = EnumCart.GIFT;
        if (cart.setup()) {
            Calendar cal = Calendar.getInstance();
            int month = cal.get(Calendar.MONTH);
            if (month == Calendar.DECEMBER || month == Calendar.JANUARY) {
                Game.log(Level.INFO, "Activating Christmas Seasonal Pack");
                CraftingPlugin.addShapedRecipe(cart.getCartItem(), new Object[]{
                            "GGG",
                            "WEW",
                            "WWW",
                            'G', new ItemStack(Items.gunpowder),
                            'E', new ItemStack(Items.emerald),
View Full Code Here

TOP

Related Classes of mods.railcraft.common.carts.EnumCart

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.