org.bukkit.inventory
Class FurnaceRecipe

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

public class FurnaceRecipe
extends Object
implements Recipe

Represents a smelting recipe.


Constructor Summary
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)
          Create a furnace recipe to craft the specified ItemStack.
 
Method Summary
 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)
          Sets the input of this furnace recipe.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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

public FurnaceRecipe(ItemStack result,
                     Material source,
                     int data)
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 Detail

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

public FurnaceRecipe setInput(Material input,
                              int data)
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.


Copyright © 2013. All Rights Reserved.