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 RecipeCategoryprivate final intprivate final SingleItemRecipe.Factory<?> private Stringprivate final Ingredientprivate final ItemFields inherited from interface net.minecraft.data.recipes.RecipeBuilder
ROOT_RECIPE_ADVANCEMENT -
Constructor Summary
ConstructorsConstructorDescriptionSingleItemRecipeBuilder(RecipeCategory pCategory, SingleItemRecipe.Factory<?> pFactory, Ingredient pIngredient, ItemLike pResult, int pCount) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidensureValid(ResourceKey<Recipe<?>> pRecipe) voidsave(RecipeOutput pOutput, ResourceKey<Recipe<?>> pResourceKey) static SingleItemRecipeBuilderstonecutting(Ingredient pIngredient, RecipeCategory pCategory, ItemLike pResult) static SingleItemRecipeBuilderstonecutting(Ingredient pIngredient, RecipeCategory pCategory, ItemLike pResult, int pCount) unlockedBy(String pName, Criterion<?> pCriterion) 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
-
category
-
result
-
ingredient
-
count
private final int count -
criteria
-
group
-
factory
-
-
Constructor Details
-
SingleItemRecipeBuilder
public SingleItemRecipeBuilder(RecipeCategory pCategory, SingleItemRecipe.Factory<?> pFactory, Ingredient pIngredient, ItemLike pResult, int pCount)
-
-
Method Details
-
stonecutting
public static SingleItemRecipeBuilder stonecutting(Ingredient pIngredient, RecipeCategory pCategory, ItemLike pResult) -
stonecutting
public static SingleItemRecipeBuilder stonecutting(Ingredient pIngredient, RecipeCategory pCategory, ItemLike pResult, int pCount) -
unlockedBy
- Specified by:
unlockedByin interfaceRecipeBuilder
-
group
- Specified by:
groupin interfaceRecipeBuilder
-
getResult
- Specified by:
getResultin interfaceRecipeBuilder
-
save
- Specified by:
savein interfaceRecipeBuilder
-
ensureValid
-