T - type of recipepublic abstract class CookingRecipe<T extends CookingRecipe> extends Object implements Recipe, Keyed
| Constructor and Description | 
|---|
CookingRecipe(@NotNull NamespacedKey key,
             @NotNull ItemStack result,
             @NotNull Material source,
             float experience,
             int cookingTime)
Create a cooking recipe to craft the specified ItemStack. 
 | 
CookingRecipe(@NotNull NamespacedKey key,
             @NotNull ItemStack result,
             @NotNull RecipeChoice input,
             float experience,
             int cookingTime)
Create a cooking recipe to craft the specified ItemStack. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getCookingTime()
Get the cooking time for this recipe in ticks. 
 | 
float | 
getExperience()
Get the experience given by this recipe. 
 | 
@NotNull String | 
getGroup()
Get the group of this recipe. 
 | 
@NotNull ItemStack | 
getInput()
Get the input material. 
 | 
@NotNull RecipeChoice | 
getInputChoice()
Get the input choice. 
 | 
@NotNull NamespacedKey | 
getKey()
Return the namespaced identifier for this object. 
 | 
@NotNull ItemStack | 
getResult()
Get the result of this recipe. 
 | 
void | 
setCookingTime(int cookingTime)
Set the cooking time for this recipe in ticks. 
 | 
void | 
setExperience(float experience)
Sets the experience given by this recipe. 
 | 
void | 
setGroup(@NotNull String group)
Set the group of this recipe. 
 | 
@NotNull CookingRecipe | 
setInput(@NotNull Material input)
Sets the input of this cooking recipe. 
 | 
T | 
setInputChoice(@NotNull RecipeChoice input)
Sets the input of this cooking recipe. 
 | 
public CookingRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result, @NotNull @NotNull Material source, float experience, int cookingTime)
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)public CookingRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result, @NotNull @NotNull RecipeChoice input, float experience, int cookingTime)
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)@NotNull public @NotNull CookingRecipe setInput(@NotNull @NotNull Material input)
input - The input material.@NotNull public @NotNull ItemStack getInput()
@NotNull public T setInputChoice(@NotNull @NotNull RecipeChoice input)
input - The input choice.@NotNull public @NotNull RecipeChoice getInputChoice()
public void setExperience(float experience)
experience - the experience levelpublic float getExperience()
public void setCookingTime(int cookingTime)
cookingTime - new cooking timepublic int getCookingTime()
@NotNull public @NotNull NamespacedKey getKey()
Keyed@NotNull public @NotNull String getGroup()
Copyright © 2022. All rights reserved.