public class CookingRecipeBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CookingRecipeBuilder.Result |
Modifier and Type | Field and Description |
---|---|
private Advancement.Builder |
advancementBuilder |
private int |
cookingTime |
private float |
experience |
private java.lang.String |
group |
private Ingredient |
ingredient |
private CookingRecipeSerializer<?> |
recipeSerializer |
private Item |
result |
Modifier | Constructor and Description |
---|---|
private |
CookingRecipeBuilder(IItemProvider resultIn,
Ingredient ingredientIn,
float experienceIn,
int cookingTimeIn,
CookingRecipeSerializer<?> serializer) |
Modifier and Type | Method and Description |
---|---|
CookingRecipeBuilder |
addCriterion(java.lang.String name,
ICriterionInstance criterionIn) |
static CookingRecipeBuilder |
blastingRecipe(Ingredient ingredientIn,
IItemProvider resultIn,
float experienceIn,
int cookingTimeIn) |
void |
build(java.util.function.Consumer<IFinishedRecipe> consumerIn) |
void |
build(java.util.function.Consumer<IFinishedRecipe> consumerIn,
ResourceLocation id) |
void |
build(java.util.function.Consumer<IFinishedRecipe> consumerIn,
java.lang.String save) |
static CookingRecipeBuilder |
cookingRecipe(Ingredient ingredientIn,
IItemProvider resultIn,
float experienceIn,
int cookingTimeIn,
CookingRecipeSerializer<?> serializer) |
static CookingRecipeBuilder |
smeltingRecipe(Ingredient ingredientIn,
IItemProvider resultIn,
float experienceIn,
int cookingTimeIn) |
private void |
validate(ResourceLocation id) |
private final Item result
private final Ingredient ingredient
private final float experience
private final int cookingTime
private final Advancement.Builder advancementBuilder
private java.lang.String group
private final CookingRecipeSerializer<?> recipeSerializer
private CookingRecipeBuilder(IItemProvider resultIn, Ingredient ingredientIn, float experienceIn, int cookingTimeIn, CookingRecipeSerializer<?> serializer)
public static CookingRecipeBuilder cookingRecipe(Ingredient ingredientIn, IItemProvider resultIn, float experienceIn, int cookingTimeIn, CookingRecipeSerializer<?> serializer)
public static CookingRecipeBuilder blastingRecipe(Ingredient ingredientIn, IItemProvider resultIn, float experienceIn, int cookingTimeIn)
public static CookingRecipeBuilder smeltingRecipe(Ingredient ingredientIn, IItemProvider resultIn, float experienceIn, int cookingTimeIn)
public CookingRecipeBuilder addCriterion(java.lang.String name, ICriterionInstance criterionIn)
public void build(java.util.function.Consumer<IFinishedRecipe> consumerIn)
public void build(java.util.function.Consumer<IFinishedRecipe> consumerIn, java.lang.String save)
public void build(java.util.function.Consumer<IFinishedRecipe> consumerIn, ResourceLocation id)
private void validate(ResourceLocation id)