Package net.minecraft.data.recipes
Class SimpleCookingRecipeBuilder
java.lang.Object
net.minecraft.data.recipes.SimpleCookingRecipeBuilder
- All Implemented Interfaces:
RecipeBuilder
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final CookingBookCategory
private final RecipeCategory
private final int
private final float
private String
private final Ingredient
private final Item
private final RecipeSerializer<? extends AbstractCookingRecipe>
Fields inherited from interface net.minecraft.data.recipes.RecipeBuilder
ROOT_RECIPE_ADVANCEMENT
-
Constructor Summary
ModifierConstructorDescriptionprivate
SimpleCookingRecipeBuilder
(RecipeCategory p_251345_, CookingBookCategory p_251607_, ItemLike p_252112_, Ingredient p_250362_, float p_251204_, int p_250189_, RecipeSerializer<? extends AbstractCookingRecipe> p_249915_) -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleCookingRecipeBuilder
blasting
(Ingredient p_252115_, RecipeCategory p_249421_, ItemLike p_251247_, float p_250383_, int p_250476_) static SimpleCookingRecipeBuilder
campfireCooking
(Ingredient p_249393_, RecipeCategory p_249372_, ItemLike p_251516_, float p_252321_, int p_251916_) private static CookingBookCategory
determineBlastingRecipeCategory
(ItemLike p_249047_) private static CookingBookCategory
determineRecipeCategory
(RecipeSerializer<? extends AbstractCookingRecipe> p_251261_, ItemLike p_249582_) private static CookingBookCategory
determineSmeltingRecipeCategory
(ItemLike p_251938_) private void
ensureValid
(ResourceLocation p_126266_) static SimpleCookingRecipeBuilder
generic
(Ingredient p_250999_, RecipeCategory p_248815_, ItemLike p_249766_, float p_251320_, int p_248693_, RecipeSerializer<? extends AbstractCookingRecipe> p_250921_) void
save
(RecipeOutput p_299448_, ResourceLocation p_126264_) static SimpleCookingRecipeBuilder
smelting
(Ingredient p_249223_, RecipeCategory p_251240_, ItemLike p_249551_, float p_249452_, int p_250496_) static SimpleCookingRecipeBuilder
smoking
(Ingredient p_248930_, RecipeCategory p_250319_, ItemLike p_250377_, float p_252329_, int p_250482_) unlockedBy
(String p_176792_, Criterion<?> p_297700_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.data.recipes.RecipeBuilder
save, save
-
Field Details
-
category
-
bookCategory
-
result
-
ingredient
-
experience
private final float experience -
cookingTime
private final int cookingTime -
criteria
-
group
-
serializer
-
-
Constructor Details
-
SimpleCookingRecipeBuilder
private SimpleCookingRecipeBuilder(RecipeCategory p_251345_, CookingBookCategory p_251607_, ItemLike p_252112_, Ingredient p_250362_, float p_251204_, int p_250189_, RecipeSerializer<? extends AbstractCookingRecipe> p_249915_)
-
-
Method Details
-
generic
public static SimpleCookingRecipeBuilder generic(Ingredient p_250999_, RecipeCategory p_248815_, ItemLike p_249766_, float p_251320_, int p_248693_, RecipeSerializer<? extends AbstractCookingRecipe> p_250921_) -
campfireCooking
public static SimpleCookingRecipeBuilder campfireCooking(Ingredient p_249393_, RecipeCategory p_249372_, ItemLike p_251516_, float p_252321_, int p_251916_) -
blasting
public static SimpleCookingRecipeBuilder blasting(Ingredient p_252115_, RecipeCategory p_249421_, ItemLike p_251247_, float p_250383_, int p_250476_) -
smelting
public static SimpleCookingRecipeBuilder smelting(Ingredient p_249223_, RecipeCategory p_251240_, ItemLike p_249551_, float p_249452_, int p_250496_) -
smoking
public static SimpleCookingRecipeBuilder smoking(Ingredient p_248930_, RecipeCategory p_250319_, ItemLike p_250377_, float p_252329_, int p_250482_) -
unlockedBy
- Specified by:
unlockedBy
in interfaceRecipeBuilder
-
group
- Specified by:
group
in interfaceRecipeBuilder
-
getResult
- Specified by:
getResult
in interfaceRecipeBuilder
-
save
- Specified by:
save
in interfaceRecipeBuilder
-
determineSmeltingRecipeCategory
-
determineBlastingRecipeCategory
-
determineRecipeCategory
private static CookingBookCategory determineRecipeCategory(RecipeSerializer<? extends AbstractCookingRecipe> p_251261_, ItemLike p_249582_) -
ensureValid
-