class ShapedRecipeJsonFactory.ShapedRecipeJsonProvider extends Object implements RecipeJsonProvider
Modifier and Type | Field and Description |
---|---|
private Identifier |
advancementId |
private Advancement.Task |
builder |
private String |
group |
private Map<Character,Ingredient> |
inputs |
private Item |
output |
private List<String> |
pattern |
private Identifier |
recipeId |
private int |
resultCount |
Constructor and Description |
---|
ShapedRecipeJsonProvider(Identifier recipeId,
Item output,
int outputCount,
String group,
List<String> pattern,
Map<Character,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 resultCount
private final String group
private final Map<Character,Ingredient> inputs
private final Advancement.Task builder
private final Identifier advancementId
public ShapedRecipeJsonProvider(Identifier recipeId, Item output, int outputCount, String group, List<String> pattern, Map<Character,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