/** * Get the recipe that has been formed. If this event was triggered by a * tool repair, this will be a temporary shapeless recipe representing the * repair. * * @return The recipe being crafted. */ public Recipe getRecipe() { return matrix.getRecipe(); }
Recipe recipe = ((CraftingInventory) inv).getRecipe(); if (clickType == ClickType.NUMBER_KEY) { event = new CraftItemEvent(recipe, view, slotType, viewSlot, clickType, action,
/** * Get the recipe that has been formed. If this event was triggered by a * tool repair, this will be a temporary shapeless recipe representing the * repair. * * @return The recipe being crafted. */ public Recipe getRecipe() { return matrix.getRecipe(); }
@Override public MCRecipe getRecipe() { return BukkitConvertor.BukkitGetRecipe(ci.getRecipe()); }
public void onSonicUpgrade(PrepareItemCraftEvent event) { CraftingInventory ci = event.getInventory(); Recipe recipe = ci.getRecipe(); ItemStack is = ci.getResult();