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 Advancement.Builder
private int
private String
private Ingredient
private Item
private RecipeSerializer<?>
-
Constructor Summary
ConstructorDescriptionSingleItemRecipeBuilder(RecipeSerializer<?> p_126309_, Ingredient p_126310_, ItemLike p_126311_, int p_126312_)
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
ensureValid(ResourceLocation p_126330_)
void
save(Consumer<FinishedRecipe> p_126327_, ResourceLocation p_126328_)
static SingleItemRecipeBuilder
stonecutting(Ingredient p_126314_, ItemLike p_126315_)
static SingleItemRecipeBuilder
stonecutting(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, wait
Methods 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:
unlockedBy
in interfaceRecipeBuilder
-
group
- Specified by:
group
in interfaceRecipeBuilder
-
getResult
- Specified by:
getResult
in interfaceRecipeBuilder
-
save
- Specified by:
save
in interfaceRecipeBuilder
-
ensureValid
-