public static class ShapelessRecipeJsonFactory.ShapelessRecipeJsonProvider extends Object implements RecipeJsonProvider
Modifier and Type | Field and Description |
---|---|
private Identifier |
advancementId |
private Advancement.Task |
builder |
private int |
count |
private String |
group |
private List<Ingredient> |
inputs |
private Item |
output |
private Identifier |
recipeId |
Constructor and Description |
---|
ShapelessRecipeJsonProvider(Identifier recipeId,
Item output,
int outputCount,
String group,
List<Ingredient> inputs,
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 Item output
private final int count
private final String group
private final List<Ingredient> inputs
private final Advancement.Task builder
private final Identifier advancementId
public ShapelessRecipeJsonProvider(Identifier recipeId, Item output, int outputCount, String group, List<Ingredient> inputs, Advancement.Task builder, Identifier advancementId)
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