Package net.minecraft.data
Class SingleItemRecipeBuilder
- java.lang.Object
-
- net.minecraft.data.SingleItemRecipeBuilder
-
public class SingleItemRecipeBuilder extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SingleItemRecipeBuilder.Result
-
Field Summary
Fields Modifier and Type Field Description private Advancement.Builder
advancement
private int
count
private java.lang.String
group
private Ingredient
ingredient
private Item
result
private IRecipeSerializer<?>
type
-
Constructor Summary
Constructors Constructor Description SingleItemRecipeBuilder(IRecipeSerializer<?> p_i50787_1_, Ingredient p_i50787_2_, IItemProvider p_i50787_3_, int p_i50787_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
ensureValid(ResourceLocation p_218646_1_)
void
save(java.util.function.Consumer<IFinishedRecipe> p_218645_1_, java.lang.String p_218645_2_)
void
save(java.util.function.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_)
SingleItemRecipeBuilder
unlocks(java.lang.String p_218643_1_, ICriterionInstance p_218643_2_)
-
-
-
Field Detail
-
result
private final Item result
-
ingredient
private final Ingredient ingredient
-
count
private final int count
-
advancement
private final Advancement.Builder advancement
-
group
private java.lang.String group
-
type
private final IRecipeSerializer<?> type
-
-
Constructor Detail
-
SingleItemRecipeBuilder
public SingleItemRecipeBuilder(IRecipeSerializer<?> p_i50787_1_, Ingredient p_i50787_2_, IItemProvider p_i50787_3_, int p_i50787_4_)
-
-
Method Detail
-
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
public SingleItemRecipeBuilder unlocks(java.lang.String p_218643_1_, ICriterionInstance p_218643_2_)
-
save
public void save(java.util.function.Consumer<IFinishedRecipe> p_218645_1_, java.lang.String p_218645_2_)
-
save
public void save(java.util.function.Consumer<IFinishedRecipe> p_218647_1_, ResourceLocation p_218647_2_)
-
ensureValid
private void ensureValid(ResourceLocation p_218646_1_)
-
-