Examples of IRockCrusherRecipe


Examples of mods.railcraft.api.crafting.IRockCrusherRecipe

  public static RC instance;

  @Override
  public void rockCrusher(ItemStack input, ItemStack output)
  {
    IRockCrusherRecipe re = RailcraftCraftingManager.rockCrusher.createNewRecipe( input, true, true );
    re.addOutput( output, 1.0f );
  }
View Full Code Here

Examples of mods.railcraft.api.crafting.IRockCrusherRecipe

        if (abyssal == null) {
            abyssal = defineBrick("abyssal");
            if (EnumCube.ABYSSAL_STONE.isEnabled()) {
                CraftingPlugin.addFurnaceRecipe(EnumCube.ABYSSAL_STONE.getItem(), new ItemStack(abyssal, 1, 2), 0.2F);
                IRockCrusherRecipe recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(EnumCube.ABYSSAL_STONE.getItem(), true, false);
                recipe.addOutput(BlockBrick.abyssal.getItemStack(COBBLE, 1), 1.0F);
            }
        }

        if (sandy == null) {
            sandy = defineBrick("sandy");
            ((ReplacerCube) EnumCube.SANDY_BRICK.getBlockDef()).block = sandy;
            CraftingPlugin.addShapedRecipe(new ItemStack(sandy, 1, 2),
                    "BM",
                    "MB",
                    'B', new ItemStack(Items.brick),
                    'M', new ItemStack(Blocks.sand));
        }

        if (frostbound == null) {
            frostbound = defineBrick("frostbound");
            CraftingPlugin.addShapedRecipe(new ItemStack(frostbound, 8, 2),
                    "III",
                    "ILI",
                    "III",
                    'I', new ItemStack(Blocks.ice),
                    'L', new ItemStack(Items.dye, 1, 4));
        }

        if (quarried == null) {
            quarried = defineBrick("quarried");
            if (EnumCube.QUARRIED_STONE.isEnabled()) {
                CraftingPlugin.addFurnaceRecipe(EnumCube.QUARRIED_STONE.getItem(), new ItemStack(quarried, 1, 2), 0.2F);
                IRockCrusherRecipe recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(EnumCube.QUARRIED_STONE.getItem(), true, false);
                recipe.addOutput(BlockBrick.quarried.getItemStack(COBBLE, 1), 1.0F);
            }
        }

        if (bleachedbone == null) {
            bleachedbone = defineBrick("bleachedbone");
View Full Code Here

Examples of mods.railcraft.api.crafting.IRockCrusherRecipe

                    "I I",
                    "III",
                    'I', block.getItemStack(BLOCK, 1));
            CraftingPlugin.addShapelessRecipe(block.getItemStack(ETCHED, 1), block.getItemStack(BLOCK, 1), new ItemStack(Items.gunpowder));

            IRockCrusherRecipe recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(new ItemStack(block), false, false);
            recipe.addOutput(block.getItemStack(COBBLE, 1), 1.0F);

            CraftingPlugin.addFurnaceRecipe(block.getItemStack(COBBLE, 1), block.getItemStack(BLOCK, 1), 0.0F);

            return block;
        }
View Full Code Here

Examples of mods.railcraft.api.crafting.IRockCrusherRecipe

    protected void doRecipeInit(ModuleManager.Module module) {
        EnumBlockMaterial.initialize();
        for (EnumBlockMaterial mat : EnumBlockMaterial.VALUES) {
            if (BlockRailcraftStairs.isEnabled(mat) && mat.getSourceBlock() != null) {
                CraftingPlugin.addShapedRecipe(BlockRailcraftStairs.getItem(mat, 4), "S  ", "SS ", "SSS", 'S', mat.getSourceItem());
                IRockCrusherRecipe recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(BlockRailcraftStairs.getItem(mat), true, false);
                recipe.addOutput(mat.getSourceItem(), 1.0f);
            }
        }

        addRockCrusherRecipe(BlockBrick.abyssal, ABYSSAL_BLOCK, ABYSSAL_BRICK, ABYSSAL_COBBLE, ABYSSAL_FITTED);
        addRockCrusherRecipe(BlockBrick.bleachedbone, BLEACHEDBONE_BLOCK, BLEACHEDBONE_BRICK, BLEACHEDBONE_COBBLE, BLEACHEDBONE_FITTED);
View Full Code Here

Examples of mods.railcraft.api.crafting.IRockCrusherRecipe

            return;
        ItemStack output = brick.getItemStack(BlockBrick.BrickVariant.COBBLE, 1);
        for (EnumBlockMaterial mat : types) {
            if (!BlockRailcraftStairs.isEnabled(mat))
                continue;
            IRockCrusherRecipe recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(getItem(mat), true, false);
            recipe.addOutput(output, 1.0F);
        }
    }
View Full Code Here

Examples of mods.railcraft.api.crafting.IRockCrusherRecipe

                FuelManager.addBoilerFuel(fluid, fuel);
                Game.log(Level.INFO, String.format("Mod %s registered %s as a valid liquid Boiler fuel", mess.getSender(), mess.getStringValue()));
            } else if (mess.key.equals("rock-crusher")) {
               NBTTagCompound nbt = mess.getNBTValue();
      ItemStack input = ItemStack.loadItemStackFromNBT(nbt.getCompoundTag("input"));
      IRockCrusherRecipe recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(input, nbt.getBoolean("matchMeta"), nbt.getBoolean("matchNBT"));
      for (int i = 0; i < 9; i++)
        if (nbt.hasKey("output" + i)) {
             NBTTagCompound outputNBT = nbt.getCompoundTag("output" + i);
          recipe.addOutput(ItemStack.loadItemStackFromNBT(outputNBT), outputNBT.getFloat("chance"));
        }
            }
        }
    }
View Full Code Here

Examples of mods.railcraft.api.crafting.IRockCrusherRecipe

                if (paused)
                    return;

                ItemStack input = null;
                IRockCrusherRecipe recipe = null;
                for (int i = 0; i < 9; i++) {
                    input = invInput.getStackInSlot(i);
                    if (input != null) {
                        recipe = RailcraftCraftingManager.rockCrusher.getRecipe(input);
                        if (recipe != null)
                            break;
                    }
                }

                if (recipe != null)
                    if (processTime >= PROCESS_TIME) {
                        isWorking = false;
                        IInventory tempInv = new InventoryCopy(invOutput);
                        boolean hasRoom = true;
                        List<ItemStack> outputs = recipe.getRandomizedOuputs();
                        for (ItemStack output : outputs) {
                            output = InvTools.moveItemStack(output, tempInv);
                            if (output != null) {
                                hasRoom = false;
                                break;
View Full Code Here

Examples of mods.railcraft.api.crafting.IRockCrusherRecipe

                    "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();
View Full Code Here

Examples of mods.railcraft.api.crafting.IRockCrusherRecipe

        if (dust == null)
            return;
        dust = dust.copy();
        dust.stackSize = 2;

        IRockCrusherRecipe recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(ore, true, false);
        recipe.addOutput(dust, 1.0f);
    }
View Full Code Here

Examples of mods.railcraft.api.crafting.IRockCrusherRecipe

        ItemFirestoneCracked.registerItem();

        FMLCommonHandler.instance().bus().register(new FirestoneTickHandler());

        if (EnumOre.FIRESTONE.isEnabled() && ItemFirestoneRaw.item != null && ItemFirestoneCut.item != null) {
            IRockCrusherRecipe recipe = RailcraftCraftingManager.rockCrusher.createNewRecipe(EnumOre.FIRESTONE.getItem(), true, false);
            recipe.addOutput(ItemFirestoneRaw.getItem(), 1F);

            CraftingPlugin.addShapedRecipe(ItemFirestoneCut.getItem(),
                    " P ",
                    "PFP",
                    " P ",
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.