Package net.minecraft.data.server.recipe
Class SingleItemRecipeJsonFactory
java.lang.Object
net.minecraft.data.server.recipe.SingleItemRecipeJsonFactory
public class SingleItemRecipeJsonFactory extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SingleItemRecipeJsonFactory.SingleItemRecipeJsonProvider
-
Field Summary
Fields Modifier and Type Field Description private Advancement.Task
builder
private int
count
private String
group
private Ingredient
input
private Item
output
private RecipeSerializer<?>
serializer
-
Constructor Summary
Constructors Constructor Description SingleItemRecipeJsonFactory(RecipeSerializer<?> serializer, Ingredient input, ItemConvertible output, int outputCount)
-
Method Summary
Modifier and Type Method Description SingleItemRecipeJsonFactory
create(String criterionName, CriterionConditions conditions)
static SingleItemRecipeJsonFactory
create(Ingredient input, ItemConvertible output)
static SingleItemRecipeJsonFactory
create(Ingredient input, ItemConvertible output, int outputCount)
void
offerTo(Consumer<RecipeJsonProvider> exporter, String recipeIdStr)
void
offerTo(Consumer<RecipeJsonProvider> exporter, Identifier recipeId)
private void
validate(Identifier recipeId)
-
Field Details
-
output
-
input
-
count
private final int count -
builder
-
group
-
serializer
-
-
Constructor Details
-
SingleItemRecipeJsonFactory
public SingleItemRecipeJsonFactory(RecipeSerializer<?> serializer, Ingredient input, ItemConvertible output, int outputCount)
-
-
Method Details
-
create
-
create
public static SingleItemRecipeJsonFactory create(Ingredient input, ItemConvertible output, int outputCount) -
create
-
offerTo
-
offerTo
-
validate
-