public static class SmithingRecipeJsonFactory.SmithingRecipeJsonProvider extends Object implements RecipeJsonProvider
Modifier and Type | Field and Description |
---|---|
private Ingredient |
addition |
private Identifier |
advancementId |
private Ingredient |
base |
private Advancement.Task |
builder |
private Identifier |
recipeId |
private Item |
result |
private RecipeSerializer<?> |
serializer |
Constructor and Description |
---|
SmithingRecipeJsonProvider(Identifier recipeId,
RecipeSerializer<?> serializer,
Ingredient base,
Ingredient addition,
Item result,
Advancement.Task builder,
Identifier advancementId) |
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 Ingredient base
private final Ingredient addition
private final Item result
private final Advancement.Task builder
private final Identifier advancementId
private final RecipeSerializer<?> serializer
public SmithingRecipeJsonProvider(Identifier recipeId, RecipeSerializer<?> serializer, Ingredient base, Ingredient addition, Item result, Advancement.Task builder, Identifier advancementId)
public void serialize(JsonObject json)
serialize
in interface RecipeJsonProvider
public Identifier getRecipeId()
getRecipeId
in interface RecipeJsonProvider
public RecipeSerializer<?> getSerializer()
getSerializer
in interface RecipeJsonProvider
@Nullable public JsonObject toAdvancementJson()
toAdvancementJson
in interface RecipeJsonProvider
@Nullable public Identifier getAdvancementId()
getAdvancementId
in interface RecipeJsonProvider