public class ShapelessRecipeJsonFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ShapelessRecipeJsonFactory.ShapelessRecipeJsonProvider |
Modifier and Type | Field and Description |
---|---|
private Advancement.Task |
builder |
private String |
group |
private List<Ingredient> |
inputs |
private static Logger |
LOGGER |
private Item |
output |
private int |
outputCount |
Constructor and Description |
---|
ShapelessRecipeJsonFactory(ItemConvertible itemProvider,
int outputCount) |
Modifier and Type | Method and Description |
---|---|
static ShapelessRecipeJsonFactory |
create(ItemConvertible output) |
static ShapelessRecipeJsonFactory |
create(ItemConvertible output,
int outputCount) |
ShapelessRecipeJsonFactory |
criterion(String criterionName,
CriterionConditions conditions) |
ShapelessRecipeJsonFactory |
group(String group) |
ShapelessRecipeJsonFactory |
input(Ingredient ingredient) |
ShapelessRecipeJsonFactory |
input(Ingredient ingredient,
int size) |
ShapelessRecipeJsonFactory |
input(ItemConvertible itemProvider) |
ShapelessRecipeJsonFactory |
input(ItemConvertible itemProvider,
int size) |
ShapelessRecipeJsonFactory |
input(Tag<Item> tag) |
void |
offerTo(Consumer<RecipeJsonProvider> exporter) |
void |
offerTo(Consumer<RecipeJsonProvider> exporter,
Identifier recipeId) |
void |
offerTo(Consumer<RecipeJsonProvider> exporter,
String recipeIdStr) |
private void |
validate(Identifier recipeId) |
private static final Logger LOGGER
private final Item output
private final int outputCount
private final List<Ingredient> inputs
private final Advancement.Task builder
private String group
public ShapelessRecipeJsonFactory(ItemConvertible itemProvider, int outputCount)
public static ShapelessRecipeJsonFactory create(ItemConvertible output)
public static ShapelessRecipeJsonFactory create(ItemConvertible output, int outputCount)
public ShapelessRecipeJsonFactory input(Tag<Item> tag)
public ShapelessRecipeJsonFactory input(ItemConvertible itemProvider)
public ShapelessRecipeJsonFactory input(ItemConvertible itemProvider, int size)
public ShapelessRecipeJsonFactory input(Ingredient ingredient)
public ShapelessRecipeJsonFactory input(Ingredient ingredient, int size)
public ShapelessRecipeJsonFactory criterion(String criterionName, CriterionConditions conditions)
public ShapelessRecipeJsonFactory 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)