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,
MaterialData source,
float experience) |
Create a furnace recipe to craft the specified ItemStack.
|
FurnaceRecipe(ItemStack result,
Material source,
int data) |
Deprecated.
Magic value
|
FurnaceRecipe(ItemStack result,
Material source,
int data,
float experience) |
Deprecated.
Magic value
|
Modifier and Type | Method | Description |
---|---|---|
float |
getExperience() |
Get the experience given by this recipe.
|
ItemStack |
getInput() |
Get the input material.
|
ItemStack |
getResult() |
Get the result of this recipe.
|
void |
setExperience(float experience) |
Sets the experience given by 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
|
public FurnaceRecipe(ItemStack result, Material source)
result
- The item you want the recipe to create.source
- The input material.public FurnaceRecipe(ItemStack result, MaterialData source)
result
- The item you want the recipe to create.source
- The input material.public FurnaceRecipe(ItemStack result, MaterialData source, float experience)
result
- The item you want the recipe to create.source
- The input material.experience
- The experience given by this recipe@Deprecated public FurnaceRecipe(ItemStack result, Material source, int data)
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.)@Deprecated public FurnaceRecipe(ItemStack result, Material source, int data, float experience)
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.)experience
- The experience given by this recipepublic FurnaceRecipe setInput(MaterialData input)
input
- The input material.public FurnaceRecipe setInput(Material input)
input
- The input material.@Deprecated public FurnaceRecipe setInput(Material input, int data)
input
- The input material.data
- The data value. (Note: This is currently ignored by the
CraftBukkit server.)public ItemStack getInput()
public ItemStack getResult()
public void setExperience(float experience)
experience
- the experience levelpublic float getExperience()
Copyright © 2018. All rights reserved.