Examples of IRecipe


Examples of net.minecraft.item.crafting.IRecipe

                "I I",
                "I I",
                "I I",
                'I', Items.iron_ingot);

        IRecipe recipe = new ShapedOreRecipe(item.getStack(6, EnumRail.STANDARD),
                "I I",
                "I I",
                "I I",
                'I', "ingotBronze");
        RollingMachineCraftingManager.getInstance().getRecipeList().add(recipe);
View Full Code Here

Examples of net.minecraft.item.crafting.IRecipe

                "  I",
                " I ",
                "I  ",
                'I', new ItemStack(Items.iron_ingot));

        IRecipe recipe = new ShapedOreRecipe(new ItemStack(this, 4), true,
                "  I",
                " I ",
                "I  ",
                'I', "ingotBronze");
        RollingMachineCraftingManager.getInstance().getRecipeList().add(recipe);
View Full Code Here

Examples of net.minecraft.item.crafting.IRecipe

            if (RailcraftConfig.isItemEnabled(tag)) {
                item = itemSteelShovel = new ItemSteelShovel();
                ItemRegistry.registerItem(item);
                HarvestPlugin.setToolClass(item, "shovel", 2);

                IRecipe recipe = new ShapedOreRecipe(new ItemStack(item), false, new Object[]{
                    " I ",
                    " S ",
                    " S ",
                    'I', "ingotSteel",
                    'S', new ItemStack(Items.stick)
View Full Code Here

Examples of net.minecraft.item.crafting.IRecipe

            if (RailcraftConfig.isItemEnabled(tag)) {
                item = itemSteelPickaxe = new ItemSteelPickaxe();
                ItemRegistry.registerItem(item);
                HarvestPlugin.setToolClass(item, "pickaxe", 2);

                IRecipe recipe = new ShapedOreRecipe(new ItemStack(item), false, new Object[]{
                    "III",
                    " S ",
                    " S ",
                    'I', "ingotSteel",
                    'S', new ItemStack(Items.stick)
View Full Code Here

Examples of net.minecraft.item.crafting.IRecipe

            if (RailcraftConfig.isItemEnabled(tag)) {
                item = itemSteelHoe = new ItemSteelHoe();
                ItemRegistry.registerItem(item);

                IRecipe recipe = new ShapedOreRecipe(new ItemStack(item), true, new Object[]{
                    "II ",
                    " S ",
                    " S ",
                    'I', "ingotSteel",
                    'S', new ItemStack(Items.stick)
View Full Code Here

Examples of net.minecraft.item.crafting.IRecipe

                Game.logTrace(Level.WARN, "Tried to define invalid shaped recipe for {0}, a necessary item was probably disabled. Skipping", result.getUnlocalizedName());
                return;
            }
        }
        if (oreRecipe) {
            IRecipe recipe = new ShapedOreRecipe(result, input);
            addRecipe(recipe);
        } else
            GameRegistry.addRecipe(result, input);
    }
View Full Code Here

Examples of net.minecraft.item.crafting.IRecipe

                Game.logTrace(Level.WARN, "Tried to define invalid shapeless recipe for {0}, a necessary item was probably disabled. Skipping", result.getUnlocalizedName());
                return;
            }
        }
        if (oreRecipe) {
            IRecipe recipe = new ShapelessOreRecipe(result, input);
            addRecipe(recipe);
        } else
            GameRegistry.addShapelessRecipe(result, input);
    }
View Full Code Here

Examples of net.minecraft.item.crafting.IRecipe

            testSet.add(Items.furnace_minecart);

//        MiscTools.addShapelessRecipe(new ItemStack(Item.coal, 20), Block.dirt);
        Iterator it = CraftingManager.getInstance().getRecipeList().iterator();
        while (it.hasNext()) {
            IRecipe r = (IRecipe) it.next();
            ItemStack output = null;
            try {
                output = r.getRecipeOutput();
            } catch (Exception ex) {
            }
            if (output != null)
                if (testSet.contains(output.getItem()))
                    it.remove();
        }

        // Items
        replaceVanillaCart(EnumCart.BASIC, Items.minecart, "MinecartRideable", 42);
        replaceVanillaCart(EnumCart.CHEST, Items.chest_minecart, "MinecartChest", 43);
        replaceVanillaCart(EnumCart.FURNACE, Items.furnace_minecart, "MinecartFurnace", 44);
        replaceVanillaCart(EnumCart.TNT, Items.tnt_minecart, "MinecartTNT", 45);
        replaceVanillaCart(EnumCart.HOPPER, Items.hopper_minecart, "MinecartHopper", 46);

        CraftingPlugin.addShapelessRecipe(new ItemStack(Items.minecart), Items.chest_minecart);
        CraftingPlugin.addShapelessRecipe(new ItemStack(Items.minecart), Items.furnace_minecart);
        CraftingPlugin.addShapelessRecipe(new ItemStack(Items.minecart), Items.tnt_minecart);
        CraftingPlugin.addShapelessRecipe(new ItemStack(Items.minecart), Items.hopper_minecart);

        LootPlugin.addLootRailway(EnumCart.BASIC.getCartItem(), 1, 1, "cart.basic");
        LootPlugin.addLootRailway(EnumCart.CHEST.getCartItem(), 1, 1, "cart.chest");
        LootPlugin.addLootRailway(EnumCart.TNT.getCartItem(), 1, 3, "cart.tnt");
        LootPlugin.addLootRailway(new ItemStack(Blocks.rail), 8, 32, "track.basic");
        LootPlugin.addLootRailway(EnumCart.HOPPER.getCartItem(), 1, 1, "cart.hopper");

        Blocks.rail.setHarvestLevel("pickaxe", 0);
        Blocks.rail.setHarvestLevel("crowbar", 0);
        Blocks.golden_rail.setHarvestLevel("pickaxe", 0);
        Blocks.golden_rail.setHarvestLevel("crowbar", 0);
        Blocks.detector_rail.setHarvestLevel("pickaxe", 0);
        Blocks.detector_rail.setHarvestLevel("crowbar", 0);
        Blocks.activator_rail.setHarvestLevel("pickaxe", 0);
        Blocks.activator_rail.setHarvestLevel("crowbar", 0);

        // Define Recipies
        if (RailcraftConfig.getRecipeConfig("railcraft.cart.bronze")) {
            IRecipe recipe = new ShapedOreRecipe(new ItemStack(Items.minecart), false, new Object[]{
                "I I",
                "III",
                'I', "ingotBronze",});
            CraftingManager.getInstance().getRecipeList().add(recipe);
        }

        if (RailcraftConfig.getRecipeConfig("railcraft.cart.steel")) {
            IRecipe recipe = new ShapedOreRecipe(new ItemStack(Items.minecart, 2), false, new Object[]{
                "I I",
                "III",
                'I', "ingotSteel",});
            CraftingManager.getInstance().getRecipeList().add(recipe);
        }
View Full Code Here

Examples of net.minecraft.item.crafting.IRecipe

            /**
             * Vanilla
             */
            if (recipeObject instanceof ShapedRecipes || recipeObject instanceof ShapelessRecipes || recipeObject instanceof ShapedOreRecipe || recipeObject instanceof ShapelessOreRecipe)
            {
                IRecipe recipe = (IRecipe) recipeObject;
                ItemStack recipeOutput = recipe.getRecipeOutput();

                if (recipeOutput != null)
                {
                    List<WrappedStack> recipeInputs = RecipeHelper.getRecipeInputs(recipe);

View Full Code Here

Examples of net.minecraft.src.IRecipe

      return itemstack;
    }
    }
  public boolean onRequestSingleRecipeOutput( SlotClevercraft slot )
  {
    IRecipe irecipe = slot.getIRecipe();
    if(irecipe == null)
      return false;
   
    return onRequestSingleRecipeOutput(thePlayer, irecipe, theTile, slot.myIndex);
  }
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.