Examples of EnumCube


Examples of mods.railcraft.common.blocks.aesthetics.cube.EnumCube

        BlockPostMetal.registerPlatform();
        BlockRailcraftWall.registerBlocks();
        BlockStrengthGlass.registerBlock();
        BlockBrick.setupBlock();

        EnumCube cubeType = EnumCube.CONCRETE_BLOCK;
        if (RailcraftConfig.isSubBlockEnabled(cubeType.getTag())) {
            BlockCube.registerBlock();
            Block cube = BlockCube.getBlock();
            if (cube != null) {
                ItemStack stack = cubeType.getItem();
                if (ModuleManager.isModuleLoaded(Module.FACTORY)
                        && RailcraftBlocks.getBlockMachineAlpha() != null
                        && RailcraftConfig.isSubBlockEnabled(EnumMachineAlpha.ROLLING_MACHINE.getTag())) {
                    stack.stackSize = 8;
                    CraftingPlugin.addShapedRecipe(stack,
                            "SIS",
                            "ISI",
                            "SIS",
                            'I', RailcraftItem.rebar.getRecipeObject(),
                            'S', Blocks.stone);
                } else {
                    stack.stackSize = 4;
                    CraftingPlugin.addShapedRecipe(stack,
                            " S ",
                            "SIS",
                            " S ",
                            'I', Items.iron_ingot,
                            'S', Blocks.stone);
                }
            }
        }

        cubeType = EnumCube.CREOSOTE_BLOCK;
        if (RailcraftConfig.isSubBlockEnabled(cubeType.getTag())) {
            BlockCube.registerBlock();
            Block cube = BlockCube.getBlock();
            if (cube != null) {
                ItemStack stack = cubeType.getItem();
                for (ItemStack container : FluidHelper.getContainersFilledWith(Fluids.CREOSOTE.get(FluidHelper.BUCKET_VOLUME))) {
                    CraftingPlugin.addShapelessRecipe(stack, "logWood", container);
                }
            }
        }
View Full Code Here

Examples of mods.railcraft.common.blocks.aesthetics.cube.EnumCube

                            'W', container);
                }
            }
        }

        EnumCube cubeType = EnumCube.CREOSOTE_BLOCK;
        if (cubeType.isEnabled()) {
            ItemStack stack = cubeType.getItem();
            for (ItemStack container : FluidHelper.getContainersFilledWith(Fluids.CREOSOTE.get(FluidHelper.BUCKET_VOLUME))) {
                CraftingPlugin.addShapelessRecipe(stack, "logWood", container);
            }
            ForestryPlugin.addCarpenterRecipe("creosote.block", 40, Fluids.CREOSOTE.get(750), null, stack, "L", 'L', "logWood");
        }
View Full Code Here

Examples of mods.railcraft.common.blocks.aesthetics.cube.EnumCube

    public void initFirst() {
        BlockCube.registerBlock();
        BlockOre.registerBlock();
        BlockWorldLogic.registerBlock();

        EnumCube cubeType = EnumCube.ABYSSAL_STONE;
        if (RailcraftConfig.isSubBlockEnabled(cubeType.getTag())) {
            BlockCube.registerBlock();
        }

        cubeType = EnumCube.QUARRIED_STONE;
        if (RailcraftConfig.isSubBlockEnabled(cubeType.getTag())) {
            BlockCube.registerBlock();
        }

        if (RailcraftConfig.isWorldGenEnabled("saltpeter") && EnumOre.SALTPETER.isEnabled())
            MinecraftForge.ORE_GEN_BUS.register(new SaltpeterGenerator());
View Full Code Here

Examples of mods.railcraft.common.blocks.aesthetics.cube.EnumCube

                    'A', new ItemStack(Blocks.anvil),
                    'P', new ItemStack(Blocks.piston),
                    'G', RailcraftItem.gear.getRecipeObject(ItemGear.EnumGear.STEEL));

        if (BlockCube.getBlock() != null) {
            EnumCube type = EnumCube.STEEL_BLOCK;
            if (RailcraftConfig.isSubBlockEnabled(type.getTag())) {
                initMetalBlock(Metal.STEEL);

                LootPlugin.addLootTool(type.getItem(), 1, 1, "steel.block");

                if (EnumMachineAlpha.BLAST_FURNACE.isAvaliable())
                    RailcraftCraftingManager.blastFurnace.addRecipe(new ItemStack(Blocks.iron_block), false, false, 11520, EnumCube.STEEL_BLOCK.getItem());
            }

            type = EnumCube.COPPER_BLOCK;
            if (RailcraftConfig.isSubBlockEnabled(type.getTag()))
                initMetalBlock(Metal.COPPER);

            type = EnumCube.TIN_BLOCK;
            if (RailcraftConfig.isSubBlockEnabled(type.getTag()))
                initMetalBlock(Metal.TIN);

            type = EnumCube.LEAD_BLOCK;
            if (RailcraftConfig.isSubBlockEnabled(type.getTag()))
                initMetalBlock(Metal.LEAD);

            type = EnumCube.CRUSHED_OBSIDIAN;
            if (RailcraftConfig.isSubBlockEnabled(type.getTag())) {
                ItemStack stack = type.getItem();

                BallastRegistry.registerBallast(BlockCube.getBlock(), type.ordinal());

                if (IC2Plugin.isModInstalled() && RailcraftConfig.addObsidianRecipesToMacerator()) {
                    IC2Plugin.addMaceratorRecipe(new ItemStack(Blocks.obsidian), stack);
                    IC2Plugin.addMaceratorRecipe(stack, ItemDust.getDust(ItemDust.EnumDust.OBSIDIAN));
                }
            }

            type = EnumCube.COKE_BLOCK;
            if (RailcraftConfig.isSubBlockEnabled(type.getTag())) {
                BlockCube.registerBlock();
                Block cube = BlockCube.getBlock();
                if (cube != null) {
                    ItemStack stack = type.getItem();
                    CraftingPlugin.addShapedRecipe(stack,
                            "CCC",
                            "CCC",
                            "CCC",
                            'C', RailcraftToolItems.getCoalCoke());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.