Package net.minecraft.data
Class SingleItemRecipeBuilder
java.lang.Object
net.minecraft.data.SingleItemRecipeBuilder
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Advancement.Builder
private final int
private String
private final Ingredient
private final Item
private final IRecipeSerializer<?>
-
Constructor Summary
ConstructorDescriptionSingleItemRecipeBuilder
(IRecipeSerializer<?> p_i50787_1_, Ingredient p_i50787_2_, IItemProvider p_i50787_3_, int p_i50787_4_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
ensureValid
(ResourceLocation p_218646_1_) void
save
(Consumer<IFinishedRecipe> p_218645_1_, String p_218645_2_) void
save
(Consumer<IFinishedRecipe> p_218647_1_, ResourceLocation p_218647_2_) static SingleItemRecipeBuilder
stonecutting
(Ingredient p_218648_0_, IItemProvider p_218648_1_) static SingleItemRecipeBuilder
stonecutting
(Ingredient p_218644_0_, IItemProvider p_218644_1_, int p_218644_2_) unlocks
(String p_218643_1_, ICriterionInstance p_218643_2_)
-
Field Details
-
result
-
ingredient
-
count
private final int count -
advancement
-
group
-
type
-
-
Constructor Details
-
SingleItemRecipeBuilder
public SingleItemRecipeBuilder(IRecipeSerializer<?> p_i50787_1_, Ingredient p_i50787_2_, IItemProvider p_i50787_3_, int p_i50787_4_)
-
-
Method Details
-
stonecutting
public static SingleItemRecipeBuilder stonecutting(Ingredient p_218648_0_, IItemProvider p_218648_1_) -
stonecutting
public static SingleItemRecipeBuilder stonecutting(Ingredient p_218644_0_, IItemProvider p_218644_1_, int p_218644_2_) -
unlocks
-
save
-
save
-
ensureValid
-