Package mods.railcraft.api.crafting

Examples of mods.railcraft.api.crafting.IRockCrusherRecipe.addOutput()


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

  public RC() {
    TestClass( RailcraftCraftingManager.class );
    TestClass( IRockCrusherRecipe.class );
View Full Code Here


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

        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

                    "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

        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

        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

      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

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

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

            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);
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.