Package org.bukkit.inventory
Class FurnaceRecipe
- java.lang.Object
-
- org.bukkit.inventory.CookingRecipe<FurnaceRecipe>
-
- org.bukkit.inventory.FurnaceRecipe
-
public class FurnaceRecipe extends CookingRecipe<FurnaceRecipe>
Represents a furnace recipe.
-
-
Constructor Summary
Constructors Constructor Description FurnaceRecipe(ItemStack result, Material source)
Deprecated.FurnaceRecipe(ItemStack result, MaterialData source)
Deprecated.FurnaceRecipe(ItemStack result, MaterialData source, float experience)
Deprecated.FurnaceRecipe(ItemStack result, Material source, int data)
Deprecated.FurnaceRecipe(NamespacedKey key, ItemStack result, RecipeChoice input, float experience, int cookingTime)
Create a furnace recipe to craft the specified ItemStack.FurnaceRecipe(NamespacedKey key, ItemStack result, Material source, float experience, int cookingTime)
Create a furnace recipe to craft the specified ItemStack.FurnaceRecipe(NamespacedKey key, ItemStack result, Material source, int data, float experience, int cookingTime)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FurnaceRecipe
setInput(Material input)
Sets the input of this cooking recipe.FurnaceRecipe
setInput(MaterialData input)
Sets the input of this furnace recipe.FurnaceRecipe
setInput(Material input, int data)
Deprecated.Magic valueFurnaceRecipe
setInputChoice(RecipeChoice input)
Sets the input of this cooking recipe.-
Methods inherited from class org.bukkit.inventory.CookingRecipe
getCookingTime, getExperience, getGroup, getInput, getInputChoice, getKey, getResult, setCookingTime, setExperience, setGroup
-
-
-
-
Constructor Detail
-
FurnaceRecipe
@Deprecated public FurnaceRecipe(@NotNull ItemStack result, @NotNull Material source)
Deprecated.
-
FurnaceRecipe
@Deprecated public FurnaceRecipe(@NotNull ItemStack result, @NotNull MaterialData source)
Deprecated.
-
FurnaceRecipe
@Deprecated public FurnaceRecipe(@NotNull ItemStack result, @NotNull MaterialData source, float experience)
Deprecated.
-
FurnaceRecipe
@Deprecated public FurnaceRecipe(@NotNull ItemStack result, @NotNull Material source, int data)
Deprecated.
-
FurnaceRecipe
public FurnaceRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime)
Create a furnace recipe to craft the specified ItemStack.- Parameters:
key
- The unique recipe keyresult
- The item you want the recipe to create.source
- The input material.experience
- The experience given by this recipecookingTime
- The cooking time (in ticks)
-
FurnaceRecipe
@Deprecated public FurnaceRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, int data, float experience, int cookingTime)
Deprecated.
-
FurnaceRecipe
public FurnaceRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime)
Create a furnace recipe to craft the specified ItemStack.- Parameters:
key
- The unique recipe keyresult
- The item you want the recipe to create.input
- The input choices.experience
- The experience given by this recipecookingTime
- The cooking time (in ticks)
-
-
Method Detail
-
setInput
@NotNull public FurnaceRecipe setInput(@NotNull MaterialData input)
Sets the input of this furnace recipe.- Parameters:
input
- The input material.- Returns:
- The changed recipe, so you can chain calls.
-
setInput
@NotNull public FurnaceRecipe setInput(@NotNull Material input)
Description copied from class:CookingRecipe
Sets the input of this cooking recipe.- Overrides:
setInput
in classCookingRecipe<FurnaceRecipe>
- Parameters:
input
- The input material.- Returns:
- The changed recipe, so you can chain calls.
-
setInput
@Deprecated public FurnaceRecipe setInput(@NotNull Material input, int data)
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.
-
setInputChoice
@NotNull public FurnaceRecipe setInputChoice(@NotNull RecipeChoice input)
Description copied from class:CookingRecipe
Sets the input of this cooking recipe.- Overrides:
setInputChoice
in classCookingRecipe<FurnaceRecipe>
- Parameters:
input
- The input choice.- Returns:
- The changed recipe, so you can chain calls.
-
-