Package net.minecraft.data
Class CookingRecipeBuilder
- java.lang.Object
-
- net.minecraft.data.CookingRecipeBuilder
-
public class CookingRecipeBuilder extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CookingRecipeBuilder.Result
-
Field Summary
Fields Modifier and Type Field Description private Advancement.Builder
advancement
private int
cookingTime
private float
experience
private java.lang.String
group
private Ingredient
ingredient
private Item
result
private CookingRecipeSerializer<?>
serializer
-
Constructor Summary
Constructors Modifier Constructor Description private
CookingRecipeBuilder(IItemProvider p_i50788_1_, Ingredient p_i50788_2_, float p_i50788_3_, int p_i50788_4_, CookingRecipeSerializer<?> p_i50788_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CookingRecipeBuilder
blasting(Ingredient p_218633_0_, IItemProvider p_218633_1_, float p_218633_2_, int p_218633_3_)
static CookingRecipeBuilder
cooking(Ingredient p_218631_0_, IItemProvider p_218631_1_, float p_218631_2_, int p_218631_3_, CookingRecipeSerializer<?> p_218631_4_)
private void
ensureValid(ResourceLocation p_218634_1_)
void
save(java.util.function.Consumer<IFinishedRecipe> p_218630_1_)
void
save(java.util.function.Consumer<IFinishedRecipe> p_218632_1_, java.lang.String p_218632_2_)
void
save(java.util.function.Consumer<IFinishedRecipe> p_218635_1_, ResourceLocation p_218635_2_)
static CookingRecipeBuilder
smelting(Ingredient p_218629_0_, IItemProvider p_218629_1_, float p_218629_2_, int p_218629_3_)
CookingRecipeBuilder
unlockedBy(java.lang.String p_218628_1_, ICriterionInstance p_218628_2_)
-
-
-
Field Detail
-
result
private final Item result
-
ingredient
private final Ingredient ingredient
-
experience
private final float experience
-
cookingTime
private final int cookingTime
-
advancement
private final Advancement.Builder advancement
-
group
private java.lang.String group
-
serializer
private final CookingRecipeSerializer<?> serializer
-
-
Constructor Detail
-
CookingRecipeBuilder
private CookingRecipeBuilder(IItemProvider p_i50788_1_, Ingredient p_i50788_2_, float p_i50788_3_, int p_i50788_4_, CookingRecipeSerializer<?> p_i50788_5_)
-
-
Method Detail
-
cooking
public static CookingRecipeBuilder cooking(Ingredient p_218631_0_, IItemProvider p_218631_1_, float p_218631_2_, int p_218631_3_, CookingRecipeSerializer<?> p_218631_4_)
-
blasting
public static CookingRecipeBuilder blasting(Ingredient p_218633_0_, IItemProvider p_218633_1_, float p_218633_2_, int p_218633_3_)
-
smelting
public static CookingRecipeBuilder smelting(Ingredient p_218629_0_, IItemProvider p_218629_1_, float p_218629_2_, int p_218629_3_)
-
unlockedBy
public CookingRecipeBuilder unlockedBy(java.lang.String p_218628_1_, ICriterionInstance p_218628_2_)
-
save
public void save(java.util.function.Consumer<IFinishedRecipe> p_218630_1_)
-
save
public void save(java.util.function.Consumer<IFinishedRecipe> p_218632_1_, java.lang.String p_218632_2_)
-
save
public void save(java.util.function.Consumer<IFinishedRecipe> p_218635_1_, ResourceLocation p_218635_2_)
-
ensureValid
private void ensureValid(ResourceLocation p_218634_1_)
-
-