public class SingleItemRecipeJsonFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SingleItemRecipeJsonFactory.SingleItemRecipeJsonProvider |
Modifier and Type | Field and Description |
---|---|
private Advancement.Task |
builder |
private int |
count |
private String |
group |
private Ingredient |
input |
private Item |
output |
private RecipeSerializer<?> |
serializer |
Constructor and Description |
---|
SingleItemRecipeJsonFactory(RecipeSerializer<?> serializer,
Ingredient input,
ItemConvertible output,
int outputCount) |
Modifier and Type | Method and Description |
---|---|
static SingleItemRecipeJsonFactory |
create(Ingredient input,
ItemConvertible output) |
static SingleItemRecipeJsonFactory |
create(Ingredient input,
ItemConvertible output,
int outputCount) |
SingleItemRecipeJsonFactory |
create(String criterionName,
CriterionConditions conditions) |
void |
offerTo(Consumer<RecipeJsonProvider> exporter,
Identifier recipeId) |
void |
offerTo(Consumer<RecipeJsonProvider> exporter,
String recipeIdStr) |
private void |
validate(Identifier recipeId) |
private final Item output
private final Ingredient input
private final int count
private final Advancement.Task builder
private String group
private final RecipeSerializer<?> serializer
public SingleItemRecipeJsonFactory(RecipeSerializer<?> serializer, Ingredient input, ItemConvertible output, int outputCount)
public static SingleItemRecipeJsonFactory create(Ingredient input, ItemConvertible output)
public static SingleItemRecipeJsonFactory create(Ingredient input, ItemConvertible output, int outputCount)
public SingleItemRecipeJsonFactory create(String criterionName, CriterionConditions conditions)
public void offerTo(Consumer<RecipeJsonProvider> exporter, String recipeIdStr)
public void offerTo(Consumer<RecipeJsonProvider> exporter, Identifier recipeId)
private void validate(Identifier recipeId)