public class SmithingRecipeJsonFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SmithingRecipeJsonFactory.SmithingRecipeJsonProvider |
Modifier and Type | Field and Description |
---|---|
private Ingredient |
addition |
private Ingredient |
base |
private Advancement.Task |
builder |
private Item |
result |
private RecipeSerializer<?> |
serializer |
Constructor and Description |
---|
SmithingRecipeJsonFactory(RecipeSerializer<?> serializer,
Ingredient base,
Ingredient addition,
Item result) |
Modifier and Type | Method and Description |
---|---|
static SmithingRecipeJsonFactory |
create(Ingredient base,
Ingredient addition,
Item result) |
SmithingRecipeJsonFactory |
criterion(String criterionName,
CriterionConditions conditions) |
void |
offerTo(Consumer<RecipeJsonProvider> exporter,
Identifier recipeId) |
void |
offerTo(Consumer<RecipeJsonProvider> exporter,
String recipeId) |
private void |
validate(Identifier recipeId) |
private final Ingredient base
private final Ingredient addition
private final Item result
private final Advancement.Task builder
private final RecipeSerializer<?> serializer
public SmithingRecipeJsonFactory(RecipeSerializer<?> serializer, Ingredient base, Ingredient addition, Item result)
public static SmithingRecipeJsonFactory create(Ingredient base, Ingredient addition, Item result)
public SmithingRecipeJsonFactory criterion(String criterionName, CriterionConditions conditions)
public void offerTo(Consumer<RecipeJsonProvider> exporter, String recipeId)
public void offerTo(Consumer<RecipeJsonProvider> exporter, Identifier recipeId)
private void validate(Identifier recipeId)