Package net.minecraft.data.recipes
Class SimpleCookingRecipeBuilder
java.lang.Object
net.minecraft.data.recipes.SimpleCookingRecipeBuilder
- All Implemented Interfaces:
RecipeBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CookingBookCategoryprivate final RecipeCategoryprivate final intprivate final floatprivate final AbstractCookingRecipe.Factory<?> private Stringprivate final Ingredientprivate final Itemprivate final ItemStackFields inherited from interface net.minecraft.data.recipes.RecipeBuilder
ROOT_RECIPE_ADVANCEMENT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSimpleCookingRecipeBuilder(RecipeCategory p_251345_, CookingBookCategory p_251607_, ItemStack result, Ingredient p_250362_, float p_251204_, int p_250189_, AbstractCookingRecipe.Factory<?> p_311960_) privateSimpleCookingRecipeBuilder(RecipeCategory category, CookingBookCategory bookCategory, ItemLike result, Ingredient ingredient, float experience, int cookingTime, AbstractCookingRecipe.Factory<?> factory) -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleCookingRecipeBuilderblasting(Ingredient p_252115_, RecipeCategory p_249421_, ItemStack result, float p_250383_, int p_250476_) static SimpleCookingRecipeBuilderblasting(Ingredient ingredient, RecipeCategory category, ItemLike result, float experience, int cookingTime) static SimpleCookingRecipeBuildercampfireCooking(Ingredient p_249393_, RecipeCategory p_249372_, ItemStack result, float p_252321_, int p_251916_) static SimpleCookingRecipeBuildercampfireCooking(Ingredient ingredient, RecipeCategory category, ItemLike result, float experience, int cookingTime) private static CookingBookCategoryprivate static CookingBookCategorydetermineRecipeCategory(RecipeSerializer<? extends AbstractCookingRecipe> serializer, ItemLike result) private static CookingBookCategoryprivate voidMakes sure that this obtainable.static <T extends AbstractCookingRecipe>
SimpleCookingRecipeBuildergeneric(Ingredient p_250999_, RecipeCategory p_248815_, ItemStack result, float p_251320_, int p_248693_, RecipeSerializer<T> p_250921_, AbstractCookingRecipe.Factory<T> p_312657_) static <T extends AbstractCookingRecipe>
SimpleCookingRecipeBuildergeneric(Ingredient ingredient, RecipeCategory category, ItemLike result, float experience, int cookingTime, RecipeSerializer<T> cookingSerializer, AbstractCookingRecipe.Factory<T> factory) voidsave(RecipeOutput recipeOutput, ResourceLocation id) static SimpleCookingRecipeBuildersmelting(Ingredient p_249223_, RecipeCategory p_251240_, ItemStack result, float p_249452_, int p_250496_) static SimpleCookingRecipeBuildersmelting(Ingredient ingredient, RecipeCategory category, ItemLike result, float experience, int cookingTime) static SimpleCookingRecipeBuildersmoking(Ingredient p_248930_, RecipeCategory p_250319_, ItemStack result, float p_252329_, int p_250482_) static SimpleCookingRecipeBuildersmoking(Ingredient ingredient, RecipeCategory category, ItemLike result, float experience, int cookingTime) unlockedBy(String name, Criterion<?> criterion) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.data.recipes.RecipeBuilder
save, save
-
Field Details
-
category
-
bookCategory
-
result
-
stackResult
-
ingredient
-
experience
private final float experience -
cookingTime
private final int cookingTime -
criteria
-
group
-
factory
-
-
Constructor Details
-
SimpleCookingRecipeBuilder
private SimpleCookingRecipeBuilder(RecipeCategory category, CookingBookCategory bookCategory, ItemLike result, Ingredient ingredient, float experience, int cookingTime, AbstractCookingRecipe.Factory<?> factory) -
SimpleCookingRecipeBuilder
private SimpleCookingRecipeBuilder(RecipeCategory p_251345_, CookingBookCategory p_251607_, ItemStack result, Ingredient p_250362_, float p_251204_, int p_250189_, AbstractCookingRecipe.Factory<?> p_311960_)
-
-
Method Details
-
generic
public static <T extends AbstractCookingRecipe> SimpleCookingRecipeBuilder generic(Ingredient ingredient, RecipeCategory category, ItemLike result, float experience, int cookingTime, RecipeSerializer<T> cookingSerializer, AbstractCookingRecipe.Factory<T> factory) -
campfireCooking
public static SimpleCookingRecipeBuilder campfireCooking(Ingredient ingredient, RecipeCategory category, ItemLike result, float experience, int cookingTime) -
blasting
public static SimpleCookingRecipeBuilder blasting(Ingredient ingredient, RecipeCategory category, ItemLike result, float experience, int cookingTime) -
smelting
public static SimpleCookingRecipeBuilder smelting(Ingredient ingredient, RecipeCategory category, ItemLike result, float experience, int cookingTime) -
smoking
public static SimpleCookingRecipeBuilder smoking(Ingredient ingredient, RecipeCategory category, ItemLike result, float experience, int cookingTime) -
generic
public static <T extends AbstractCookingRecipe> SimpleCookingRecipeBuilder generic(Ingredient p_250999_, RecipeCategory p_248815_, ItemStack result, float p_251320_, int p_248693_, RecipeSerializer<T> p_250921_, AbstractCookingRecipe.Factory<T> p_312657_) -
campfireCooking
public static SimpleCookingRecipeBuilder campfireCooking(Ingredient p_249393_, RecipeCategory p_249372_, ItemStack result, float p_252321_, int p_251916_) -
blasting
public static SimpleCookingRecipeBuilder blasting(Ingredient p_252115_, RecipeCategory p_249421_, ItemStack result, float p_250383_, int p_250476_) -
smelting
public static SimpleCookingRecipeBuilder smelting(Ingredient p_249223_, RecipeCategory p_251240_, ItemStack result, float p_249452_, int p_250496_) -
smoking
public static SimpleCookingRecipeBuilder smoking(Ingredient p_248930_, RecipeCategory p_250319_, ItemStack result, float p_252329_, int p_250482_) -
unlockedBy
- Specified by:
unlockedByin interfaceRecipeBuilder
-
group
- Specified by:
groupin interfaceRecipeBuilder
-
getResult
- Specified by:
getResultin interfaceRecipeBuilder
-
save
- Specified by:
savein interfaceRecipeBuilder
-
determineSmeltingRecipeCategory
-
determineBlastingRecipeCategory
-
determineRecipeCategory
private static CookingBookCategory determineRecipeCategory(RecipeSerializer<? extends AbstractCookingRecipe> serializer, ItemLike result) -
ensureValid
Makes sure that this obtainable.
-