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 int |
cookingTime |
private float |
experience |
private String |
group |
private Ingredient |
ingredient |
private Item |
result |
private CookingRecipeSerializer<?> |
serializer |
Modifier | Constructor and Description |
---|---|
private |
CookingRecipeJsonFactory(ItemConvertible result,
Ingredient ingredient,
float experience,
int cookingTime,
CookingRecipeSerializer<?> serializer) |
Modifier and Type | Method and Description |
---|---|
static CookingRecipeJsonFactory |
create(Ingredient ingredient,
ItemConvertible result,
float experience,
int cookingTime,
CookingRecipeSerializer<?> serializer) |
static CookingRecipeJsonFactory |
createBlasting(Ingredient ingredient,
ItemConvertible result,
float experience,
int cookingTime) |
static CookingRecipeJsonFactory |
createSmelting(Ingredient ingredient,
ItemConvertible result,
float experience,
int cookingTime) |
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 result
private final Ingredient ingredient
private final float experience
private final int cookingTime
private final Advancement.Task builder
private String group
private final CookingRecipeSerializer<?> serializer
private CookingRecipeJsonFactory(ItemConvertible result, Ingredient ingredient, float experience, int cookingTime, CookingRecipeSerializer<?> serializer)
public static CookingRecipeJsonFactory create(Ingredient ingredient, ItemConvertible result, float experience, int cookingTime, CookingRecipeSerializer<?> serializer)
public static CookingRecipeJsonFactory createBlasting(Ingredient ingredient, ItemConvertible result, float experience, int cookingTime)
public static CookingRecipeJsonFactory createSmelting(Ingredient ingredient, ItemConvertible result, float experience, int cookingTime)
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)