Class FurnaceRecipe

java.lang.Object
org.bukkit.inventory.FurnaceRecipe
All Implemented Interfaces:
Recipe

public class FurnaceRecipe
extends java.lang.Object
implements Recipe
Represents a smelting recipe.
  • Constructor Details

    • FurnaceRecipe

      public FurnaceRecipe​(ItemStack result, Material source)
      Create a furnace recipe to craft the specified ItemStack.
      Parameters:
      result - The item you want the recipe to create.
      source - The input material.
    • FurnaceRecipe

      public FurnaceRecipe​(ItemStack result, MaterialData source)
      Create a furnace recipe to craft the specified ItemStack.
      Parameters:
      result - The item you want the recipe to create.
      source - The input material.
    • FurnaceRecipe

      @Deprecated public FurnaceRecipe​(ItemStack result, Material source, int data)
      Deprecated.
      Magic value
      Create a furnace recipe to craft the specified ItemStack.
      Parameters:
      result - The item you want the recipe to create.
      source - The input material.
      data - The data value. (Note: This is currently ignored by the CraftBukkit server.)
  • Method Details

    • setInput

      public FurnaceRecipe setInput​(MaterialData input)
      Sets the input of this furnace recipe.
      Parameters:
      input - The input material.
      Returns:
      The changed recipe, so you can chain calls.
    • setInput

      public FurnaceRecipe setInput​(Material input)
      Sets the input of this furnace recipe.
      Parameters:
      input - The input material.
      Returns:
      The changed recipe, so you can chain calls.
    • setInput

      @Deprecated public FurnaceRecipe setInput​(Material input, int data)
      Deprecated.
      Magic value
      Sets the input of this furnace recipe.
      Parameters:
      input - The input material.
      data - The data value. (Note: This is currently ignored by the CraftBukkit server.)
      Returns:
      The changed recipe, so you can chain calls.
    • getInput

      public ItemStack getInput()
      Get the input material.
      Returns:
      The input material.
    • getResult

      public ItemStack getResult()
      Get the result of this recipe.
      Specified by:
      getResult in interface Recipe
      Returns:
      The resulting stack.