public class SingleItemRecipeBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SingleItemRecipeBuilder.Result |
Modifier and Type | Field and Description |
---|---|
private Advancement.Builder |
advancementBuilder |
private int |
count |
private java.lang.String |
group |
private Ingredient |
ingredient |
private Item |
result |
private IRecipeSerializer<?> |
serializer |
Constructor and Description |
---|
SingleItemRecipeBuilder(IRecipeSerializer<?> serializerIn,
Ingredient ingredientIn,
IItemProvider resultProviderIn,
int countIn) |
Modifier and Type | Method and Description |
---|---|
SingleItemRecipeBuilder |
addCriterion(java.lang.String name,
ICriterionInstance criterionIn) |
void |
build(java.util.function.Consumer<IFinishedRecipe> consumerIn,
ResourceLocation id) |
void |
build(java.util.function.Consumer<IFinishedRecipe> consumerIn,
java.lang.String save) |
static SingleItemRecipeBuilder |
stonecuttingRecipe(Ingredient ingredientIn,
IItemProvider resultIn) |
static SingleItemRecipeBuilder |
stonecuttingRecipe(Ingredient ingredientIn,
IItemProvider resultIn,
int countIn) |
private void |
validate(ResourceLocation id) |
private final Item result
private final Ingredient ingredient
private final int count
private final Advancement.Builder advancementBuilder
private java.lang.String group
private final IRecipeSerializer<?> serializer
public SingleItemRecipeBuilder(IRecipeSerializer<?> serializerIn, Ingredient ingredientIn, IItemProvider resultProviderIn, int countIn)
public static SingleItemRecipeBuilder stonecuttingRecipe(Ingredient ingredientIn, IItemProvider resultIn)
public static SingleItemRecipeBuilder stonecuttingRecipe(Ingredient ingredientIn, IItemProvider resultIn, int countIn)
public SingleItemRecipeBuilder addCriterion(java.lang.String name, ICriterionInstance criterionIn)
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)