Package net.minecraft.item.crafting

Examples of net.minecraft.item.crafting.IRecipe


    public void wallRecipeHandler(WallActiveEvent event)
    {
       
        if (redCobbleItem.isPresent())
        {
            final IRecipe recipe = new ShapedOreRecipe(new ItemStack(event.block, 6, BlockCustomWall.BlockType.RED_COBBLE.metadata()), new String[] { "ppp", "ppp" }, 'p', redCobbleItem.get());
            Extrabiomes.proxy.addRecipe(recipe);
        }
    }
View Full Code Here


      ItemStack fences;
      for(int i = 0; i < BlockCustomFence.BlockType.values().length; i++) {
        planks = new ItemStack(Stuff.planks.get(), 1, BlockCustomFence.BlockType.values()[i].metadata());
        fences = new ItemStack(event.block, 3, i);
       
        final IRecipe recipe = new ShapedOreRecipe(fences, new String[] { "psp","psp" }, 'p', planks, 's', sticks);
        Extrabiomes.proxy.addRecipe(recipe);
        //blockType.texture = iconRegister.registerIcon(Extrabiomes.TEXTURE_PATH + "planks" + blockType.name().toLowerCase(Locale.ENGLISH));
      }
    }
View Full Code Here

      }
    }
   
    @SubscribeEvent
    public void fenceGateRecipeHandler(FenceGateActiveEvent event) {
      final IRecipe recipe = new ShapedOreRecipe(event.gate, new String[] { "sps","sps" }, 'p', event.wood, 's', new ItemStack(Items.stick, 1));
      Extrabiomes.proxy.addRecipe(recipe);
     
    }
View Full Code Here

    @SubscribeEvent
    public void newWoodSlabRecipeHandler(NewWoodSlabActiveEvent event)
    {
        if (plankSakuraBlossomItem.isPresent())
        {
            final IRecipe recipe = new ShapedOreRecipe(new ItemStack(event.block, 6, BlockNewWoodSlab.BlockType.SAKURA_BLOSSOM.metadata()), new String[] { "ppp" }, 'p', plankSakuraBlossomItem.get());
            Extrabiomes.proxy.addRecipe(recipe);
        }
    }
View Full Code Here

    public void woodSlabRecipeHandler(WoodSlabActiveEvent event)
    {
       
        if (plankAcaciaItem.isPresent())
        {
            final IRecipe recipe = new ShapedOreRecipe(new ItemStack(event.block, 6, BlockCustomWoodSlab.BlockType.ACACIA.metadata()), new String[] { "ppp" }, 'p', plankAcaciaItem.get());
            Extrabiomes.proxy.addRecipe(recipe);
        }
       
        if (plankFirItem.isPresent())
        {
            final IRecipe recipe = new ShapedOreRecipe(new ItemStack(event.block, 6, BlockCustomWoodSlab.BlockType.FIR.metadata()), new String[] { "ppp" }, 'p', plankFirItem.get());
            Extrabiomes.proxy.addRecipe(recipe);
        }
       
        if (plankRedwoodItem.isPresent())
        {
            final IRecipe recipe = new ShapedOreRecipe(new ItemStack(event.block, 6, BlockCustomWoodSlab.BlockType.REDWOOD.metadata()), new String[] { "ppp" }, 'p', plankRedwoodItem.get());
            Extrabiomes.proxy.addRecipe(recipe);
        }
       
        if (plankBaldCypressItem.isPresent())
        {
            final IRecipe recipe = new ShapedOreRecipe(new ItemStack(event.block, 6, BlockCustomWoodSlab.BlockType.BALD_CYPRESS.metadata()), new String[] { "ppp" }, 'p', plankBaldCypressItem.get());
            Extrabiomes.proxy.addRecipe(recipe);
        }
       
        if (plankCypressItem.isPresent())
        {
            final IRecipe recipe = new ShapedOreRecipe(new ItemStack(event.block, 6, BlockCustomWoodSlab.BlockType.CYPRESS.metadata()), new String[] { "ppp" }, 'p', plankCypressItem.get());
            Extrabiomes.proxy.addRecipe(recipe);
        }
       
        if (plankAutumnItem.isPresent())
        {
            final IRecipe recipe = new ShapedOreRecipe(new ItemStack(event.block, 6, BlockCustomWoodSlab.BlockType.AUTUMN.metadata()), new String[] { "ppp" }, 'p', plankAutumnItem.get());
            Extrabiomes.proxy.addRecipe(recipe);
        }
       
        if (plankJapaneseMapleItem.isPresent())
        {
            final IRecipe recipe = new ShapedOreRecipe(new ItemStack(event.block, 6, BlockCustomWoodSlab.BlockType.JAPANESE_MAPLE.metadata()), new String[] { "ppp" }, 'p', plankJapaneseMapleItem.get());
            Extrabiomes.proxy.addRecipe(recipe);
        }
       
        if (plankRainbowEucalyptusItem.isPresent())
        {
            final IRecipe recipe = new ShapedOreRecipe(new ItemStack(event.block, 6, BlockCustomWoodSlab.BlockType.RAINBOW_EUCALYPTUS.metadata()), new String[] { "ppp" }, 'p', plankRainbowEucalyptusItem.get());
            Extrabiomes.proxy.addRecipe(recipe);
        }
    }
View Full Code Here

        }
    }
   
    @SubscribeEvent
    public void woodDoorRecipeHandler(WoodDoorActiveEvent event) {
      final IRecipe recipe = new ShapedOreRecipe(event.door, new String[] { "pp","pp","pp" }, 'p', event.wood);
      Extrabiomes.proxy.addRecipe(recipe);
    }
View Full Code Here

            //Extrabiomes.proxy.registerEntityID(EntityScarecrow.class, ItemScarecrow.NAME, scarecrowEntityID);
            //Extrabiomes.proxy.registerEntity(EntityScarecrow.class, ItemScarecrow.NAME, Extrabiomes.instance, scarecrowEntityID, 300, 2, true);
            Extrabiomes.proxy.registerEntity(EntityScarecrow.class, "scarecrow", Extrabiomes.instance, 0, 300, 2, true);
            ItemScarecrow.ID = (String) EntityList.classToStringMapping.get(EntityScarecrow.class);
           
            final IRecipe recipe = new ShapedOreRecipe(Stuff.scarecrow.get(), new String[] { " p ", "sms", " s " }, 'p', Blocks.pumpkin, 'm', Blocks.melon_block, 's', Items.stick);
            Extrabiomes.proxy.addRecipe(recipe);
        }
       
        if (ItemSettings.PASTE.getEnabled())
        {
            if (Element.TINY_CACTUS.isPresent())
            {
                IRecipe recipe = new ShapelessOreRecipe(Stuff.paste.get(), Blocks.cactus);
                Extrabiomes.proxy.addRecipe(recipe);
               
                recipe = new ShapelessOreRecipe(Stuff.paste.get(), Element.TINY_CACTUS.get(), Element.TINY_CACTUS.get(), Element.TINY_CACTUS.get(), Element.TINY_CACTUS.get());
                Extrabiomes.proxy.addRecipe(recipe);
               
View Full Code Here

                 '/', "stickWood"));
   
    // Reinforced chest recipes
    if (BetterStorageTiles.reinforcedChest != null)
      for (ContainerMaterial material : ContainerMaterial.getMaterials()) {
        IRecipe recipe = material.getReinforcedRecipe(Blocks.chest, BetterStorageTiles.reinforcedChest);
        if (recipe != null) GameRegistry.addRecipe(recipe);
      }
   
    // Locker recipe
    if (BetterStorageTiles.locker != null) {
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BetterStorageTiles.locker),
          "ooo",
          "o |",
          "ooo", 'o', "plankWood",
                 '|', Blocks.trapdoor));
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BetterStorageTiles.locker),
          "ooo",
          "| o",
          "ooo", 'o', "plankWood",
                 '|', Blocks.trapdoor));
     
      // Reinforced locker recipes
      if (BetterStorageTiles.reinforcedLocker != null)
        for (ContainerMaterial material : ContainerMaterial.getMaterials()) {
          IRecipe recipe = material.getReinforcedRecipe(BetterStorageTiles.locker, BetterStorageTiles.reinforcedLocker);
          if (recipe != null) GameRegistry.addRecipe(recipe);
        }
    }
   
    // Armor stand recipe
View Full Code Here

 
  public static VanillaStationCrafting findVanillaRecipe(InventoryCraftingStation inv) {
    World world = ((inv.entity != null) ? inv.entity.getWorldObj() : WorldUtils.getLocalWorld());
    InventoryCrafting crafting = new InventoryCrafting(null, 3, 3);
    ReflectionUtils.set(InventoryCrafting.class, crafting, "field_70466_a", "stackList", inv.crafting);
    IRecipe recipe = findRecipe(crafting, world);
    if (recipe == null) return null;
    return new VanillaStationCrafting(world, recipe, inv.crafting, recipe.getCraftingResult(crafting));
  }
View Full Code Here

                }

                if(containsMatch(true, (ItemStack[])recipe.recipeItems.toArray(new ItemStack[recipe.recipeItems.size()]), replaceStacks))
                {
                    recipesToRemove.add((IRecipe)obj);
                    IRecipe newRecipe = new ShapelessOreRecipe(recipe, replacements);
                    recipesToAdd.add(newRecipe);
                }
            }
        }
View Full Code Here

TOP

Related Classes of net.minecraft.item.crafting.IRecipe

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.