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 CookingBookCategory
private final RecipeCategory
private final int
private final float
private final AbstractCookingRecipe.Factory
<?> private String
private final Ingredient
private final Item
private final ItemStack
Fields inherited from interface net.minecraft.data.recipes.RecipeBuilder
ROOT_RECIPE_ADVANCEMENT
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SimpleCookingRecipeBuilder
(RecipeCategory p_251345_, CookingBookCategory p_251607_, ItemStack result, Ingredient p_250362_, float p_251204_, int p_250189_, AbstractCookingRecipe.Factory<?> p_311960_) private
SimpleCookingRecipeBuilder
(RecipeCategory pCategory, CookingBookCategory pBookCategory, ItemLike pResult, Ingredient pIngredient, float pExperience, int pCookingTime, AbstractCookingRecipe.Factory<?> pFactory) -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleCookingRecipeBuilder
blasting
(Ingredient p_252115_, RecipeCategory p_249421_, ItemStack result, float p_250383_, int p_250476_) static SimpleCookingRecipeBuilder
blasting
(Ingredient pIngredient, RecipeCategory pCategory, ItemLike pResult, float pExperience, int pCookingTime) static SimpleCookingRecipeBuilder
campfireCooking
(Ingredient p_249393_, RecipeCategory p_249372_, ItemStack result, float p_252321_, int p_251916_) static SimpleCookingRecipeBuilder
campfireCooking
(Ingredient pIngredient, RecipeCategory pCategory, ItemLike pResult, float pExperience, int pCookingTime) private static CookingBookCategory
determineBlastingRecipeCategory
(ItemLike pResult) private static CookingBookCategory
determineRecipeCategory
(RecipeSerializer<? extends AbstractCookingRecipe> pSerializer, ItemLike pResult) private static CookingBookCategory
determineSmeltingRecipeCategory
(ItemLike pResult) private void
Makes 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 pIngredient, RecipeCategory pCategory, ItemLike pResult, float pExperience, int pCookingTime, RecipeSerializer<T> pCookingSerializer, AbstractCookingRecipe.Factory<T> pFactory) void
save
(RecipeOutput pRecipeOutput, ResourceLocation pId) static SimpleCookingRecipeBuilder
smelting
(Ingredient p_249223_, RecipeCategory p_251240_, ItemStack result, float p_249452_, int p_250496_) static SimpleCookingRecipeBuilder
smelting
(Ingredient pIngredient, RecipeCategory pCategory, ItemLike pResult, float pExperience, int pCookingTime) static SimpleCookingRecipeBuilder
smoking
(Ingredient p_248930_, RecipeCategory p_250319_, ItemStack result, float p_252329_, int p_250482_) static SimpleCookingRecipeBuilder
smoking
(Ingredient pIngredient, RecipeCategory pCategory, ItemLike pResult, float pExperience, int pCookingTime) unlockedBy
(String pName, Criterion<?> pCriterion) 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
-
stackResult
-
ingredient
-
experience
private final float experience -
cookingTime
private final int cookingTime -
criteria
-
group
-
factory
-
-
Constructor Details
-
SimpleCookingRecipeBuilder
private SimpleCookingRecipeBuilder(RecipeCategory pCategory, CookingBookCategory pBookCategory, ItemLike pResult, Ingredient pIngredient, float pExperience, int pCookingTime, AbstractCookingRecipe.Factory<?> pFactory) -
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 pIngredient, RecipeCategory pCategory, ItemLike pResult, float pExperience, int pCookingTime, RecipeSerializer<T> pCookingSerializer, AbstractCookingRecipe.Factory<T> pFactory) -
campfireCooking
public static SimpleCookingRecipeBuilder campfireCooking(Ingredient pIngredient, RecipeCategory pCategory, ItemLike pResult, float pExperience, int pCookingTime) -
blasting
public static SimpleCookingRecipeBuilder blasting(Ingredient pIngredient, RecipeCategory pCategory, ItemLike pResult, float pExperience, int pCookingTime) -
smelting
public static SimpleCookingRecipeBuilder smelting(Ingredient pIngredient, RecipeCategory pCategory, ItemLike pResult, float pExperience, int pCookingTime) -
smoking
public static SimpleCookingRecipeBuilder smoking(Ingredient pIngredient, RecipeCategory pCategory, ItemLike pResult, float pExperience, int pCookingTime) -
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:
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> pSerializer, ItemLike pResult) -
ensureValid
Makes sure that this obtainable.
-