Bukkit  1.5.2-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.inventory.FurnaceRecipe Class Reference

Represents a smelting recipe. More...

+ Inheritance diagram for org.bukkit.inventory.FurnaceRecipe:
+ Collaboration diagram for org.bukkit.inventory.FurnaceRecipe:

Public Member Functions

 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.
 
FurnaceRecipe setInput (MaterialData input)
 Sets the input of this furnace recipe.
 
FurnaceRecipe setInput (Material input)
 Sets the input of this furnace recipe.
 
FurnaceRecipe setInput (Material input, int data)
 Sets the input of this furnace recipe.
 
ItemStack getInput ()
 Get the input material.
 
ItemStack getResult ()
 Get the result of this recipe.
 
- Public Member Functions inherited from org.bukkit.inventory.Recipe
ItemStack getResult ()
 Get the result of this recipe.
 

Detailed Description

Represents a smelting recipe.

Definition at line 9 of file FurnaceRecipe.java.

Constructor & Destructor Documentation

org.bukkit.inventory.FurnaceRecipe.FurnaceRecipe ( ItemStack  result,
Material  source 
)

Create a furnace recipe to craft the specified ItemStack.

Parameters
resultThe item you want the recipe to create.
sourceThe input material.

Definition at line 19 of file FurnaceRecipe.java.

org.bukkit.inventory.FurnaceRecipe.FurnaceRecipe ( ItemStack  result,
MaterialData  source 
)

Create a furnace recipe to craft the specified ItemStack.

Parameters
resultThe item you want the recipe to create.
sourceThe input material.

Definition at line 29 of file FurnaceRecipe.java.

References org.bukkit.material.MaterialData.getData(), and org.bukkit.material.MaterialData.getItemType().

org.bukkit.inventory.FurnaceRecipe.FurnaceRecipe ( ItemStack  result,
Material  source,
int  data 
)

Create a furnace recipe to craft the specified ItemStack.

Parameters
resultThe item you want the recipe to create.
sourceThe input material.
dataThe data value. (Note: This is currently ignored by the CraftBukkit server.)

Definition at line 40 of file FurnaceRecipe.java.

Member Function Documentation

ItemStack org.bukkit.inventory.FurnaceRecipe.getInput ( )

Get the input material.

Returns
The input material.

Definition at line 82 of file FurnaceRecipe.java.

References org.bukkit.inventory.ItemStack.clone().

ItemStack org.bukkit.inventory.FurnaceRecipe.getResult ( )

Get the result of this recipe.

Returns
The resulting stack.

Definition at line 91 of file FurnaceRecipe.java.

References org.bukkit.inventory.ItemStack.clone().

FurnaceRecipe org.bukkit.inventory.FurnaceRecipe.setInput ( MaterialData  input)

Sets the input of this furnace recipe.

Parameters
inputThe input material.
Returns
The changed recipe, so you can chain calls.

Definition at line 51 of file FurnaceRecipe.java.

References org.bukkit.material.MaterialData.getData(), and org.bukkit.material.MaterialData.getItemType().

Referenced by org.bukkit.inventory.FurnaceRecipe.setInput().

FurnaceRecipe org.bukkit.inventory.FurnaceRecipe.setInput ( Material  input)

Sets the input of this furnace recipe.

Parameters
inputThe input material.
Returns
The changed recipe, so you can chain calls.

Definition at line 61 of file FurnaceRecipe.java.

References org.bukkit.inventory.FurnaceRecipe.setInput().

FurnaceRecipe org.bukkit.inventory.FurnaceRecipe.setInput ( Material  input,
int  data 
)

Sets the input of this furnace recipe.

Parameters
inputThe input material.
dataThe data value. (Note: This is currently ignored by the CraftBukkit server.)
Returns
The changed recipe, so you can chain calls.

Definition at line 72 of file FurnaceRecipe.java.


The documentation for this class was generated from the following file: