Package net.minecraft.data.recipes
Class SingleItemRecipeBuilder
java.lang.Object
net.minecraft.data.recipes.SingleItemRecipeBuilder
- All Implemented Interfaces:
RecipeBuilder
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final RecipeCategory
private final int
private String
private final Ingredient
private final Item
private final RecipeSerializer<?>
Fields inherited from interface net.minecraft.data.recipes.RecipeBuilder
ROOT_RECIPE_ADVANCEMENT
-
Constructor Summary
ConstructorDescriptionSingleItemRecipeBuilder
(RecipeCategory p_251425_, RecipeSerializer<?> p_249762_, Ingredient p_251221_, ItemLike p_251302_, int p_250964_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
ensureValid
(ResourceLocation p_126330_) void
save
(RecipeOutput p_298439_, ResourceLocation p_126328_) static SingleItemRecipeBuilder
stonecutting
(Ingredient p_248596_, RecipeCategory p_250503_, ItemLike p_250269_) static SingleItemRecipeBuilder
stonecutting
(Ingredient p_251375_, RecipeCategory p_248984_, ItemLike p_250105_, int p_249506_) unlockedBy
(String p_176810_, Criterion<?> p_298188_) 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
-
type
-
-
Constructor Details
-
SingleItemRecipeBuilder
public SingleItemRecipeBuilder(RecipeCategory p_251425_, RecipeSerializer<?> p_249762_, Ingredient p_251221_, ItemLike p_251302_, int p_250964_)
-
-
Method Details
-
stonecutting
public static SingleItemRecipeBuilder stonecutting(Ingredient p_248596_, RecipeCategory p_250503_, ItemLike p_250269_) -
stonecutting
public static SingleItemRecipeBuilder stonecutting(Ingredient p_251375_, RecipeCategory p_248984_, ItemLike p_250105_, int p_249506_) -
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
-