public static class SingleItemRecipeJsonFactory.SingleItemRecipeJsonProvider extends Object implements RecipeJsonProvider
Modifier and Type | Field and Description |
---|---|
private Identifier |
advancementId |
private Advancement.Task |
builder |
private int |
count |
private String |
group |
private Ingredient |
input |
private Item |
output |
private Identifier |
recipeId |
private RecipeSerializer<?> |
serializer |
Constructor and Description |
---|
SingleItemRecipeJsonProvider(Identifier recipeId,
RecipeSerializer<?> serializer,
String group,
Ingredient input,
Item output,
int outputCount,
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 String group
private final Ingredient input
private final Item output
private final int count
private final Advancement.Task builder
private final Identifier advancementId
private final RecipeSerializer<?> serializer
public SingleItemRecipeJsonProvider(Identifier recipeId, RecipeSerializer<?> serializer, String group, Ingredient input, Item output, int outputCount, 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