public static class CookingRecipeJsonFactory.CookingRecipeJsonProvider extends Object implements RecipeJsonProvider
Modifier and Type | Field and Description |
---|---|
private Identifier |
advancementId |
private Advancement.Task |
builder |
private int |
cookingTime |
private float |
experience |
private String |
group |
private Ingredient |
ingredient |
private Identifier |
recipeId |
private Item |
result |
private RecipeSerializer<? extends AbstractCookingRecipe> |
serializer |
Constructor and Description |
---|
CookingRecipeJsonProvider(Identifier recipeId,
String group,
Ingredient ingredient,
Item result,
float experience,
int cookingTime,
Advancement.Task builder,
Identifier advancementId,
RecipeSerializer<? extends AbstractCookingRecipe> serializer) |
Modifier and Type | Method and Description |
---|---|
Identifier |
getAdvancementId() |
Identifier |
getRecipeId() |
RecipeSerializer<?> |
getSerializer() |
void |
serialize(JsonObject json) |
JsonObject |
toAdvancementJson() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toJson
private final Identifier recipeId
private final String group
private final Ingredient ingredient
private final Item result
private final float experience
private final int cookingTime
private final Advancement.Task builder
private final Identifier advancementId
private final RecipeSerializer<? extends AbstractCookingRecipe> serializer
public CookingRecipeJsonProvider(Identifier recipeId, String group, Ingredient ingredient, Item result, float experience, int cookingTime, Advancement.Task builder, Identifier advancementId, RecipeSerializer<? extends AbstractCookingRecipe> serializer)
public void serialize(JsonObject json)
serialize
in interface RecipeJsonProvider
public RecipeSerializer<?> getSerializer()
getSerializer
in interface RecipeJsonProvider
public Identifier getRecipeId()
getRecipeId
in interface RecipeJsonProvider
@Nullable public JsonObject toAdvancementJson()
toAdvancementJson
in interface RecipeJsonProvider
@Nullable public Identifier getAdvancementId()
getAdvancementId
in interface RecipeJsonProvider