public class CookingRecipeJsonFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CookingRecipeJsonFactory.CookingRecipeJsonProvider |
Modifier and Type | Field and Description |
---|---|
private Advancement.Task |
builder |
private float |
exp |
private String |
group |
private Ingredient |
input |
private Item |
output |
private CookingRecipeSerializer<?> |
serializer |
private int |
time |
Modifier | Constructor and Description |
---|---|
private |
CookingRecipeJsonFactory(ItemConvertible ouptut,
Ingredient input,
float exp,
int time,
CookingRecipeSerializer<?> serializer) |
Modifier and Type | Method and Description |
---|---|
static CookingRecipeJsonFactory |
create(Ingredient input,
ItemConvertible output,
float exp,
int time,
CookingRecipeSerializer<?> serializer) |
static CookingRecipeJsonFactory |
createBlasting(Ingredient input,
ItemConvertible output,
float exp,
int time) |
static CookingRecipeJsonFactory |
createSmelting(Ingredient input,
ItemConvertible output,
float exp,
int time) |
CookingRecipeJsonFactory |
criterion(String criterionName,
CriterionConditions conditions) |
void |
offerTo(Consumer<RecipeJsonProvider> exporter) |
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 float exp
private final int time
private final Advancement.Task builder
private String group
private final CookingRecipeSerializer<?> serializer
private CookingRecipeJsonFactory(ItemConvertible ouptut, Ingredient input, float exp, int time, CookingRecipeSerializer<?> serializer)
public static CookingRecipeJsonFactory create(Ingredient input, ItemConvertible output, float exp, int time, CookingRecipeSerializer<?> serializer)
public static CookingRecipeJsonFactory createBlasting(Ingredient input, ItemConvertible output, float exp, int time)
public static CookingRecipeJsonFactory createSmelting(Ingredient input, ItemConvertible output, float exp, int time)
public CookingRecipeJsonFactory criterion(String criterionName, CriterionConditions conditions)
public void offerTo(Consumer<RecipeJsonProvider> exporter)
public void offerTo(Consumer<RecipeJsonProvider> exporter, String recipeIdStr)
public void offerTo(Consumer<RecipeJsonProvider> exporter, Identifier recipeId)
private void validate(Identifier recipeId)