public class ShapelessRecipeBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ShapelessRecipeBuilder.Result |
Modifier and Type | Field and Description |
---|---|
private Advancement.Builder |
advancementBuilder |
private int |
count |
private java.lang.String |
group |
private java.util.List<Ingredient> |
ingredients |
private static org.apache.logging.log4j.Logger |
LOGGER |
private Item |
result |
Constructor and Description |
---|
ShapelessRecipeBuilder(IItemProvider resultIn,
int countIn) |
private static final org.apache.logging.log4j.Logger LOGGER
private final Item result
private final int count
private final java.util.List<Ingredient> ingredients
private final Advancement.Builder advancementBuilder
private java.lang.String group
public ShapelessRecipeBuilder(IItemProvider resultIn, int countIn)
public static ShapelessRecipeBuilder shapelessRecipe(IItemProvider resultIn)
public static ShapelessRecipeBuilder shapelessRecipe(IItemProvider resultIn, int countIn)
public ShapelessRecipeBuilder addIngredient(Tag<Item> tagIn)
public ShapelessRecipeBuilder addIngredient(IItemProvider itemIn)
public ShapelessRecipeBuilder addIngredient(IItemProvider itemIn, int quantity)
public ShapelessRecipeBuilder addIngredient(Ingredient ingredientIn)
public ShapelessRecipeBuilder addIngredient(Ingredient ingredientIn, int quantity)
public ShapelessRecipeBuilder addCriterion(java.lang.String name, ICriterionInstance criterionIn)
public ShapelessRecipeBuilder setGroup(java.lang.String groupIn)
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)