public class ShapedRecipeJsonFactory extends Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
ShapedRecipeJsonFactory.ShapedRecipeJsonProvider |
Modifier and Type | Field and Description |
---|---|
private Advancement.Task |
builder |
private String |
group |
private Map<Character,Ingredient> |
inputs |
private static Logger |
LOGGER |
private Item |
output |
private int |
outputCount |
private List<String> |
pattern |
Constructor and Description |
---|
ShapedRecipeJsonFactory(ItemConvertible output,
int outputCount) |
Modifier and Type | Method and Description |
---|---|
static ShapedRecipeJsonFactory |
create(ItemConvertible output) |
static ShapedRecipeJsonFactory |
create(ItemConvertible output,
int outputCount) |
ShapedRecipeJsonFactory |
criterion(String criterionName,
CriterionConditions conditions) |
ShapedRecipeJsonFactory |
group(String group) |
ShapedRecipeJsonFactory |
input(Character c,
Ingredient ingredient) |
ShapedRecipeJsonFactory |
input(Character c,
ItemConvertible itemProvider) |
ShapedRecipeJsonFactory |
input(Character c,
Tag<Item> tag) |
void |
offerTo(Consumer<RecipeJsonProvider> exporter) |
void |
offerTo(Consumer<RecipeJsonProvider> exporter,
Identifier recipeId) |
void |
offerTo(Consumer<RecipeJsonProvider> exporter,
String recipeIdStr) |
ShapedRecipeJsonFactory |
pattern(String patternStr) |
private void |
validate(Identifier recipeId) |
private static final Logger LOGGER
private final Item output
private final int outputCount
private final Map<Character,Ingredient> inputs
private final Advancement.Task builder
private String group
public ShapedRecipeJsonFactory(ItemConvertible output, int outputCount)
public static ShapedRecipeJsonFactory create(ItemConvertible output)
public static ShapedRecipeJsonFactory create(ItemConvertible output, int outputCount)
public ShapedRecipeJsonFactory input(Character c, Tag<Item> tag)
public ShapedRecipeJsonFactory input(Character c, ItemConvertible itemProvider)
public ShapedRecipeJsonFactory input(Character c, Ingredient ingredient)
public ShapedRecipeJsonFactory pattern(String patternStr)
public ShapedRecipeJsonFactory criterion(String criterionName, CriterionConditions conditions)
public ShapedRecipeJsonFactory group(String group)
public void offerTo(Consumer<RecipeJsonProvider> exporter)
public void offerTo(Consumer<RecipeJsonProvider> exporter, String recipeIdStr)
public void offerTo(Consumer<RecipeJsonProvider> exporter, Identifier recipeId)
private void validate(Identifier recipeId)