Package com.bergerkiller.bukkit.common.inventory

Examples of com.bergerkiller.bukkit.common.inventory.CraftRecipe


  public static CraftRecipe[] getCraftingRequirements(int itemid, int data) {
    List<CraftRecipe> poss = new ArrayList<CraftRecipe>(2);
    for (Object rec : getCraftRecipes()) {
      ItemStack item = RecipeRef.getOutput(rec);
      if (item != null && MaterialUtil.getTypeId(item) == itemid && (data == -1 || MaterialUtil.getRawData(item) == data)) {
        CraftRecipe crec = CraftRecipe.create(rec);
        if (crec != null) {
          poss.add(crec);
        }
      }
    }
View Full Code Here

TOP

Related Classes of com.bergerkiller.bukkit.common.inventory.CraftRecipe

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.