Package net.minecraft.data.server.recipe
Class ShapelessRecipeJsonFactory
java.lang.Object
net.minecraft.data.server.recipe.ShapelessRecipeJsonFactory
public class ShapelessRecipeJsonFactory extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShapelessRecipeJsonFactory.ShapelessRecipeJsonProvider
-
Field Summary
Fields Modifier and Type Field Description private Advancement.Task
builder
private String
group
private List<Ingredient>
inputs
private static Logger
LOGGER
private Item
output
private int
outputCount
-
Constructor Summary
Constructors Constructor Description ShapelessRecipeJsonFactory(ItemConvertible itemProvider, int outputCount)
-
Method Summary
Modifier and Type Method 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(ItemConvertible itemProvider)
ShapelessRecipeJsonFactory
input(ItemConvertible itemProvider, int size)
ShapelessRecipeJsonFactory
input(Ingredient ingredient)
ShapelessRecipeJsonFactory
input(Ingredient ingredient, int size)
ShapelessRecipeJsonFactory
input(Tag<Item> tag)
void
offerTo(Consumer<RecipeJsonProvider> exporter)
void
offerTo(Consumer<RecipeJsonProvider> exporter, String recipeIdStr)
void
offerTo(Consumer<RecipeJsonProvider> exporter, Identifier recipeId)
private void
validate(Identifier recipeId)
-
Field Details
-
LOGGER
-
output
-
outputCount
private final int outputCount -
inputs
-
builder
-
group
-
-
Constructor Details
-
ShapelessRecipeJsonFactory
-
-
Method Details
-
create
-
create
-
input
-
input
-
input
-
input
-
input
-
criterion
-
group
-
offerTo
-
offerTo
-
offerTo
-
validate
-