Package net.minecraft.item.crafting

Examples of net.minecraft.item.crafting.IRecipe


      startDelegateAI(new AIRobotSearchStackRequest(robot, ActionRobotFilter.getGateFilter(robot
          .getLinkedStation()), craftingBlacklist));
      return;
    }

    IRecipe recipe = lookForWorkbenchRecipe(order);

    if (recipe != null) {
      startDelegateAI(new AIRobotCraftWorkbench(robot, recipe));
      return;
    }
View Full Code Here


    }
  }

  private IRecipe lookForWorkbenchRecipe(ItemStack order) {
    for (Object o : CraftingManager.getInstance().getRecipeList()) {
      IRecipe r = (IRecipe) o;

      if (r instanceof ShapedRecipes
          || r instanceof ShapelessRecipes
          || r instanceof ShapedOreRecipe
          || r instanceof ShapelessOreRecipe) {
        if (StackHelper.isMatchingItem(r.getRecipeOutput(), order)) {
          return r;
        }
      }
    }
View Full Code Here

    } else {
      // End repair recipe handler

          List recipes = CraftingManager.getInstance().getRecipeList();
      for (int index = 0; index < recipes.size(); ++index) {
                IRecipe currentRecipe = (IRecipe) recipes.get(index);

        if (currentRecipe.matches(par1InventoryCrafting, par2World)) {
                    return currentRecipe;
                }
            }

            return null;
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.