Package net.minecraft.data.recipes
Class SingleItemRecipeBuilder
java.lang.Object
net.minecraft.data.recipes.SingleItemRecipeBuilder
- All Implemented Interfaces:
RecipeBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RecipeCategory
private final int
private final SingleItemRecipe.Factory
<?> private String
private final Ingredient
private final Item
Fields inherited from interface net.minecraft.data.recipes.RecipeBuilder
ROOT_RECIPE_ADVANCEMENT
-
Constructor Summary
ConstructorsConstructorDescriptionSingleItemRecipeBuilder
(RecipeCategory category, SingleItemRecipe.Factory<?> factory, Ingredient ingredient, ItemLike result, int count) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
save
(RecipeOutput recipeOutput, ResourceLocation id) static SingleItemRecipeBuilder
stonecutting
(Ingredient ingredient, RecipeCategory category, ItemLike result) static SingleItemRecipeBuilder
stonecutting
(Ingredient ingredient, RecipeCategory category, ItemLike result, int count) unlockedBy
(String name, Criterion<?> criterion) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.data.recipes.RecipeBuilder
save, save
-
Field Details
-
category
-
result
-
ingredient
-
count
private final int count -
criteria
-
group
-
factory
-
-
Constructor Details
-
SingleItemRecipeBuilder
public SingleItemRecipeBuilder(RecipeCategory category, SingleItemRecipe.Factory<?> factory, Ingredient ingredient, ItemLike result, int count)
-
-
Method Details
-
stonecutting
public static SingleItemRecipeBuilder stonecutting(Ingredient ingredient, RecipeCategory category, ItemLike result) -
stonecutting
public static SingleItemRecipeBuilder stonecutting(Ingredient ingredient, RecipeCategory category, ItemLike result, int count) -
unlockedBy
- Specified by:
unlockedBy
in interfaceRecipeBuilder
-
group
- Specified by:
group
in interfaceRecipeBuilder
-
getResult
- Specified by:
getResult
in interfaceRecipeBuilder
-
save
- Specified by:
save
in interfaceRecipeBuilder
-
ensureValid
-