Package net.minecraft.data.recipes
Class SingleItemRecipeBuilder
java.lang.Object
net.minecraft.data.recipes.SingleItemRecipeBuilder
- All Implemented Interfaces:
RecipeBuilder
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Advancement.Builderprivate final intprivate Stringprivate final Ingredientprivate final Itemprivate final RecipeSerializer<?> -
Constructor Summary
ConstructorsConstructorDescriptionSingleItemRecipeBuilder(RecipeSerializer<?> p_126309_, Ingredient p_126310_, ItemLike p_126311_, int p_126312_) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidensureValid(ResourceLocation p_126330_) voidsave(Consumer<FinishedRecipe> p_126327_, ResourceLocation p_126328_) static SingleItemRecipeBuilderstonecutting(Ingredient p_126314_, ItemLike p_126315_) static SingleItemRecipeBuilderstonecutting(Ingredient p_126317_, ItemLike p_126318_, int p_126319_) unlockedBy(String p_176810_, CriterionTriggerInstance p_176811_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.data.recipes.RecipeBuilder
save, save
-
Field Details
-
result
-
ingredient
-
count
private final int count -
advancement
-
group
-
type
-
-
Constructor Details
-
SingleItemRecipeBuilder
public SingleItemRecipeBuilder(RecipeSerializer<?> p_126309_, Ingredient p_126310_, ItemLike p_126311_, int p_126312_)
-
-
Method Details
-
stonecutting
-
stonecutting
public static SingleItemRecipeBuilder stonecutting(Ingredient p_126317_, ItemLike p_126318_, int p_126319_) -
unlockedBy
- Specified by:
unlockedByin interfaceRecipeBuilder
-
group
- Specified by:
groupin interfaceRecipeBuilder
-
getResult
- Specified by:
getResultin interfaceRecipeBuilder
-
save
- Specified by:
savein interfaceRecipeBuilder
-
ensureValid
-