Package org.bukkit.inventory
Class FurnaceRecipe
Represents a furnace recipe.
-
Constructor Summary
ConstructorsConstructorDescriptionFurnaceRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime) Create a furnace recipe to craft the specified ItemStack.FurnaceRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, int data, float experience, int cookingTime) Deprecated, for removal: This API element is subject to removal in a future version.FurnaceRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime) Create a furnace recipe to craft the specified ItemStack.FurnaceRecipe(@NotNull ItemStack result, @NotNull Material source) Deprecated, for removal: This API element is subject to removal in a future version.FurnaceRecipe(@NotNull ItemStack result, @NotNull Material source, int data) Deprecated, for removal: This API element is subject to removal in a future version.FurnaceRecipe(@NotNull ItemStack result, @NotNull MaterialData source) Deprecated, for removal: This API element is subject to removal in a future version.FurnaceRecipe(@NotNull ItemStack result, @NotNull MaterialData source, float experience) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionSets the input of this cooking recipe.Deprecated, for removal: This API element is subject to removal in a future version.Magic valuesetInput(@NotNull MaterialData input) Deprecated, for removal: This API element is subject to removal in a future version.setInputChoice(@NotNull RecipeChoice input) Sets the input of this cooking recipe.Methods inherited from class org.bukkit.inventory.CookingRecipe
getCategory, getCookingTime, getExperience, getGroup, getInput, getInputChoice, getKey, getResult, setCategory, setCookingTime, setExperience, setGroup
-
Constructor Details
-
FurnaceRecipe
@Deprecated(since="1.13", forRemoval=true) public FurnaceRecipe(@NotNull @NotNull ItemStack result, @NotNull @NotNull Material source) Deprecated, for removal: This API element is subject to removal in a future version. -
FurnaceRecipe
@Deprecated(since="1.13", forRemoval=true) public FurnaceRecipe(@NotNull @NotNull ItemStack result, @NotNull @NotNull MaterialData source) Deprecated, for removal: This API element is subject to removal in a future version. -
FurnaceRecipe
@Deprecated(since="1.13", forRemoval=true) public FurnaceRecipe(@NotNull @NotNull ItemStack result, @NotNull @NotNull MaterialData source, float experience) Deprecated, for removal: This API element is subject to removal in a future version. -
FurnaceRecipe
@Deprecated(since="1.6.2", forRemoval=true) public FurnaceRecipe(@NotNull @NotNull ItemStack result, @NotNull @NotNull Material source, int data) Deprecated, for removal: This API element is subject to removal in a future version. -
FurnaceRecipe
public FurnaceRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result, @NotNull @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(since="1.9", forRemoval=true) public FurnaceRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result, @NotNull @NotNull Material source, int data, float experience, int cookingTime) Deprecated, for removal: This API element is subject to removal in a future version. -
FurnaceRecipe
public FurnaceRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result, @NotNull @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 Details
-
setInput
@NotNull @Deprecated(forRemoval=true) public @NotNull FurnaceRecipe setInput(@NotNull @NotNull MaterialData input) Deprecated, for removal: This API element is subject to removal in a future version.Sets the input of this furnace recipe.- Parameters:
input- The input material.- Returns:
- The changed recipe, so you can chain calls.
-
setInput
Description copied from class:CookingRecipeSets the input of this cooking recipe.- Overrides:
setInputin classCookingRecipe<FurnaceRecipe>- Parameters:
input- The input material.- Returns:
- The changed recipe, so you can chain calls.
-
setInput
@Deprecated(since="1.6.2", forRemoval=true) public FurnaceRecipe setInput(@NotNull @NotNull Material input, int data) Deprecated, for removal: This API element is subject to removal in a future version.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
Description copied from class:CookingRecipeSets the input of this cooking recipe.- Overrides:
setInputChoicein classCookingRecipe<FurnaceRecipe>- Parameters:
input- The input choice.- Returns:
- The changed recipe, so you can chain calls.
-