Package net.minecraftforge.oredict

Examples of net.minecraftforge.oredict.ShapedOreRecipe


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

 
  private static void addTileRecipes() {
   
    // Crate recipe
    if (BetterStorageTiles.crate != null)
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BetterStorageTiles.crate),
          "o/o",
          "/ /",
          "o/o", 'o', "plankWood",
                 '/', "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
    if (BetterStorageTiles.armorStand != null)
      GameRegistry.addShapedRecipe(new ItemStack(BetterStorageTiles.armorStand),
          " i ",
          "/i/",
          " s ", 's', new ItemStack(Blocks.stone_slab, 1, 0),
                 'i', Items.iron_ingot,
                 '/', Items.stick);
   
    // Backpack recipe
    if (BetterStorageTiles.backpack != null)
      GameRegistry.addShapedRecipe(new ItemStack(BetterStorageItems.itemBackpack),
          "#i#",
          "#O#",
          "###", '#', Items.leather,
                 'O', Blocks.wool,
                 'i', Items.gold_ingot);
   
    // Cardboard box recipe
    if ((BetterStorageTiles.cardboardBox != null) &&
        (BetterStorageItems.cardboardSheet != null))
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BetterStorageTiles.cardboardBox),
          "ooo",
          "o o",
          "ooo", 'o', "sheetCardboard"));
   
    // Crafting Station recipe
    if (BetterStorageTiles.craftingStation != null)
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BetterStorageTiles.craftingStation),
          "B-B",
          "PTP",
          "WCW", 'B', Blocks.stonebrick,
                 '-', Blocks.light_weighted_pressure_plate,
                 'P', Blocks.piston,
View Full Code Here

          Items.paper, Items.paper, Items.slime_ball);
    }
   
    // Cardboard helmet recipe
    if (BetterStorageItems.cardboardHelmet != null)
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BetterStorageItems.cardboardHelmet),
          "ooo",
          "o o", 'o', "sheetCardboard"));
    // Cardboard chestplate recipe
    if (BetterStorageItems.cardboardChestplate != null)
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BetterStorageItems.cardboardChestplate),
          "o o",
          "ooo",
          "ooo", 'o', "sheetCardboard"));
    // Cardboard leggings recipe
    if (BetterStorageItems.cardboardLeggings != null)
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BetterStorageItems.cardboardLeggings),
          "ooo",
          "o o",
          "o o", 'o', "sheetCardboard"));
    // Cardboard boots recipe
    if (BetterStorageItems.cardboardBoots != null)
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BetterStorageItems.cardboardBoots),
          "o o",
          "o o", 'o', "sheetCardboard"));
   
    // Cardboard sword recipe
    if (BetterStorageItems.cardboardSword != null)
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BetterStorageItems.cardboardSword),
          "o",
          "o",
          "/", 'o', "sheetCardboard",
               '/', Items.stick));
    // Cardboard pickaxe recipe
    if (BetterStorageItems.cardboardPickaxe != null)
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BetterStorageItems.cardboardPickaxe),
          "ooo",
          " / ",
          " / ", 'o', "sheetCardboard",
                 '/', Items.stick));
    // Cardboard shovel recipe
    if (BetterStorageItems.cardboardShovel != null)
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BetterStorageItems.cardboardShovel),
          "o",
          "/",
          "/", 'o', "sheetCardboard",
               '/', Items.stick));
   
    // Cardboard axe recipe
    if (BetterStorageItems.cardboardAxe != null) {
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BetterStorageItems.cardboardAxe),
          "oo",
          "o/",
          " /", 'o', "sheetCardboard",
                '/', Items.stick));
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BetterStorageItems.cardboardAxe),
          "oo",
          "/o",
          "/ ", 'o', "sheetCardboard",
                '/', Items.stick));
    }
   
    // Cardboard hoe recipe
    if (BetterStorageItems.cardboardHoe != null) {
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BetterStorageItems.cardboardHoe),
          "oo",
          " /",
          " /", 'o', "sheetCardboard",
                '/', Items.stick));
      GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BetterStorageItems.cardboardHoe),
          "oo",
          "/ ",
          "/ ", 'o', "sheetCardboard",
                '/', Items.stick));
    }
View Full Code Here

    materialMapOld.put(id, this);
  }
 
  public ShapedOreRecipe getReinforcedRecipe(Block middle, Block result) {
    if ((ingot == null) || (block == null)) return null;
    return new ShapedOreRecipe(setMaterial(new ItemStack(result)),
        "o#o",
        "#C#",
        "oOo", 'C', middle,
               '#', "logWood",
               'o', ingot,
View Full Code Here

TOP

Related Classes of net.minecraftforge.oredict.ShapedOreRecipe

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.