Package net.minecraft.data.recipes
Class UpgradeRecipeBuilder
java.lang.Object
net.minecraft.data.recipes.UpgradeRecipeBuilder
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Ingredient
private final Advancement.Builder
private final Ingredient
private final RecipeCategory
private final Item
private final RecipeSerializer<?>
-
Constructor Summary
ConstructorDescriptionUpgradeRecipeBuilder
(RecipeSerializer<?> p_248989_, Ingredient p_250309_, Ingredient p_249517_, RecipeCategory p_248993_, Item p_252083_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
ensureValid
(ResourceLocation p_126399_) void
save
(Consumer<FinishedRecipe> p_126393_, String p_126394_) void
save
(Consumer<FinishedRecipe> p_126396_, ResourceLocation p_126397_) static UpgradeRecipeBuilder
smithing
(Ingredient p_249698_, Ingredient p_249725_, RecipeCategory p_248633_, Item p_249938_) unlocks
(String p_126390_, CriterionTriggerInstance p_126391_)
-
Field Details
-
base
-
addition
-
category
-
result
-
advancement
-
type
-
-
Constructor Details
-
UpgradeRecipeBuilder
public UpgradeRecipeBuilder(RecipeSerializer<?> p_248989_, Ingredient p_250309_, Ingredient p_249517_, RecipeCategory p_248993_, Item p_252083_)
-
-
Method Details
-
smithing
public static UpgradeRecipeBuilder smithing(Ingredient p_249698_, Ingredient p_249725_, RecipeCategory p_248633_, Item p_249938_) -
unlocks
-
save
-
save
-
ensureValid
-