Package net.minecraft.src

Examples of net.minecraft.src.ShapedRecipes


        worldObj.setBlock((int) posX, (int) posY - 1, (int) posZ, 0);
        List l = CraftingManager.getInstance().getRecipeList();
        for (Object o : l) {
          if (!(o instanceof ShapedRecipes))
            break;
          ShapedRecipes s = (ShapedRecipes) o;
          List<ItemStack> li = new ArrayList<ItemStack>();
          for (ItemStack i : s.recipeItems)
            li.add(i);
          if (li.contains(new ItemStack(b, 1))) {
            blockCraft.put(b, s);
            Item result = Item.itemsList[s.getRecipeOutput().itemID];
            heldItem = new ItemStack(result, 1);
          }
        }
      }
  }
View Full Code Here

TOP

Related Classes of net.minecraft.src.ShapedRecipes

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.