Package org.bukkit.inventory
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 Summary
Constructors Constructor Description FurnaceRecipe(ItemStack result, Material source)
Create a furnace recipe to craft the specified ItemStack.FurnaceRecipe(ItemStack result, MaterialData source)
Create a furnace recipe to craft the specified ItemStack.FurnaceRecipe(ItemStack result, Material source, int data)
Deprecated.Magic value -
Method Summary
Modifier and Type Method Description ItemStack
getInput()
Get the input material.ItemStack
getResult()
Get the result of this recipe.FurnaceRecipe
setInput(Material input)
Sets the input of this furnace recipe.FurnaceRecipe
setInput(MaterialData input)
Sets the input of this furnace recipe.FurnaceRecipe
setInput(Material input, int data)
Deprecated.Magic value
-
Constructor Details
-
FurnaceRecipe
Create a furnace recipe to craft the specified ItemStack.- Parameters:
result
- The item you want the recipe to create.source
- The input material.
-
FurnaceRecipe
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.Magic valueCreate 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
Sets the input of this furnace recipe.- Parameters:
input
- The input material.- Returns:
- The changed recipe, so you can chain calls.
-
setInput
Sets the input of this furnace recipe.- Parameters:
input
- The input material.- Returns:
- The changed recipe, so you can chain calls.
-
setInput
Deprecated.Magic valueSets 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
Get the input material.- Returns:
- The input material.
-
getResult
Get the result of this recipe.
-