Package org.spout.api.inventory.recipe

Examples of org.spout.api.inventory.recipe.Recipe


        cntr = 0;
      }
    }
    RecipeManager recipeManager = VanillaPlugin.getInstance().getEngine().getRecipeManager();
    Collections.reverse(materials);
    Recipe recipe = recipeManager.matchShapedRecipe(materials);
    if (recipe == null) {
      recipe = recipeManager.matchShapelessRecipe(shapeless);
    }
    if (recipe != null) {
      updateCraftingSlot(recipe.getResult());
      return;
    }
    updateCraftingSlot(null);
  }
View Full Code Here


  private static final Map<String, Recipe> yamlRecipes = new ConcurrentHashMap<String, Recipe>();

  public static void initialize() {
    yamlRecipes.clear();
    for (String key : RecipeYaml.DEFAULT.getRecipes().keySet()) {
      Recipe recipe = RecipeYaml.DEFAULT.getRecipes().get(key);
      VanillaPlugin.getInstance().getEngine().getRecipeManager().register(recipe);
      yamlRecipes.put(key, recipe);
    }
  }
View Full Code Here

TOP

Related Classes of org.spout.api.inventory.recipe.Recipe

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.