Class SimpleCookingRecipeBuilder
java.lang.Object
net.minecraft.data.recipes.SimpleCookingRecipeBuilder
- All Implemented Interfaces:
RecipeBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RecipeUnlockAdvancementBuilderprivate final CookingBookCategoryprivate final intprivate final RecipeCategoryprivate final floatprivate final AbstractCookingRecipe.Factory<?> private @Nullable Stringprivate final Ingredientprivate final ItemStackTemplateFields inherited from interface RecipeBuilder
ROOT_RECIPE_ADVANCEMENT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSimpleCookingRecipeBuilder(RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemStackTemplate result, Ingredient ingredient, float experience, int cookingTime, AbstractCookingRecipe.Factory<?> factory) privateSimpleCookingRecipeBuilder(RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemLike result, Ingredient ingredient, float experience, int cookingTime, AbstractCookingRecipe.Factory<?> factory) -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleCookingRecipeBuilderblasting(Ingredient ingredient, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemStack result, float experience, int cookingTime) static SimpleCookingRecipeBuilderblasting(Ingredient ingredient, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemLike result, float experience, int cookingTime) static SimpleCookingRecipeBuildercampfireCooking(Ingredient ingredient, RecipeCategory craftingCategory, ItemStack result, float experience, int cookingTime) static SimpleCookingRecipeBuildercampfireCooking(Ingredient ingredient, RecipeCategory craftingCategory, ItemLike result, float experience, int cookingTime) ResourceKey<Recipe<?>> static <T extends AbstractCookingRecipe>
SimpleCookingRecipeBuildergeneric(Ingredient ingredient, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemStack result, float experience, int cookingTime, AbstractCookingRecipe.Factory<T> factory) static <T extends AbstractCookingRecipe>
SimpleCookingRecipeBuildergeneric(Ingredient ingredient, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemLike result, float experience, int cookingTime, AbstractCookingRecipe.Factory<T> factory) voidsave(RecipeOutput output, ResourceKey<Recipe<?>> id) static SimpleCookingRecipeBuildersmelting(Ingredient ingredient, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemStack result, float experience, int cookingTime) static SimpleCookingRecipeBuildersmelting(Ingredient ingredient, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemLike result, float experience, int cookingTime) static SimpleCookingRecipeBuildersmoking(Ingredient ingredient, RecipeCategory craftingCategory, ItemStack result, float experience, int cookingTime) static SimpleCookingRecipeBuildersmoking(Ingredient ingredient, RecipeCategory craftingCategory, ItemLike result, float experience, int cookingTime) unlockedBy(String name, Criterion<?> criterion) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RecipeBuilder
save, save
-
Field Details
-
craftingCategory
-
cookingCategory
-
result
-
ingredient
-
experience
private final float experience -
cookingTime
private final int cookingTime -
advancementBuilder
-
group
-
factory
-
-
Constructor Details
-
SimpleCookingRecipeBuilder
private SimpleCookingRecipeBuilder(RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemStackTemplate result, Ingredient ingredient, float experience, int cookingTime, AbstractCookingRecipe.Factory<?> factory) -
SimpleCookingRecipeBuilder
private SimpleCookingRecipeBuilder(RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemLike result, Ingredient ingredient, float experience, int cookingTime, AbstractCookingRecipe.Factory<?> factory)
-
-
Method Details
-
generic
public static <T extends AbstractCookingRecipe> SimpleCookingRecipeBuilder generic(Ingredient ingredient, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemLike result, float experience, int cookingTime, AbstractCookingRecipe.Factory<T> factory) -
campfireCooking
public static SimpleCookingRecipeBuilder campfireCooking(Ingredient ingredient, RecipeCategory craftingCategory, ItemLike result, float experience, int cookingTime) -
blasting
public static SimpleCookingRecipeBuilder blasting(Ingredient ingredient, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemLike result, float experience, int cookingTime) -
smelting
public static SimpleCookingRecipeBuilder smelting(Ingredient ingredient, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemLike result, float experience, int cookingTime) -
smoking
public static SimpleCookingRecipeBuilder smoking(Ingredient ingredient, RecipeCategory craftingCategory, ItemLike result, float experience, int cookingTime) -
generic
public static <T extends AbstractCookingRecipe> SimpleCookingRecipeBuilder generic(Ingredient ingredient, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemStack result, float experience, int cookingTime, AbstractCookingRecipe.Factory<T> factory) -
campfireCooking
public static SimpleCookingRecipeBuilder campfireCooking(Ingredient ingredient, RecipeCategory craftingCategory, ItemStack result, float experience, int cookingTime) -
blasting
public static SimpleCookingRecipeBuilder blasting(Ingredient ingredient, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemStack result, float experience, int cookingTime) -
smelting
public static SimpleCookingRecipeBuilder smelting(Ingredient ingredient, RecipeCategory craftingCategory, CookingBookCategory cookingCategory, ItemStack result, float experience, int cookingTime) -
smoking
public static SimpleCookingRecipeBuilder smoking(Ingredient ingredient, RecipeCategory craftingCategory, ItemStack result, float experience, int cookingTime) -
unlockedBy
- Specified by:
unlockedByin interfaceRecipeBuilder
-
group
- Specified by:
groupin interfaceRecipeBuilder
-
defaultId
- Specified by:
defaultIdin interfaceRecipeBuilder
-
save
- Specified by:
savein interfaceRecipeBuilder
-