Bukkit
1.4.7-R1.0
Main Page
Related Pages
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Enumerator
Pages
FurnaceRecipe.java
Go to the documentation of this file.
1
package
org.bukkit.inventory;
2
3
import
org.bukkit.Material;
4
import
org.bukkit.material.MaterialData;
5
9
public
class
FurnaceRecipe
implements
Recipe
{
10
private
ItemStack
output;
11
private
ItemStack
ingredient;
12
19
public
FurnaceRecipe
(
ItemStack
result,
Material
source) {
20
this
(result, source, 0);
21
}
22
29
public
FurnaceRecipe
(
ItemStack
result,
MaterialData
source) {
30
this
(result, source.
getItemType
(), source.
getData
());
31
}
32
40
public
FurnaceRecipe
(
ItemStack
result,
Material
source,
int
data) {
41
this.output =
new
ItemStack
(result);
42
this.ingredient =
new
ItemStack
(source, 1, (
short
) data);
43
}
44
51
public
FurnaceRecipe
setInput
(
MaterialData
input) {
52
return
setInput
(input.
getItemType
(), input.
getData
());
53
}
54
61
public
FurnaceRecipe
setInput
(
Material
input) {
62
return
setInput
(input, 0);
63
}
64
72
public
FurnaceRecipe
setInput
(
Material
input,
int
data) {
73
this.ingredient =
new
ItemStack
(input, 1, (
short
) data);
74
return
this
;
75
}
76
82
public
ItemStack
getInput
() {
83
return
this.ingredient.
clone
();
84
}
85
91
public
ItemStack
getResult
() {
92
return
output.
clone
();
93
}
94
}
org
bukkit
inventory
FurnaceRecipe.java
Generated on Thu May 23 2013 14:16:37 for Bukkit by
1.8.2