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 pCategory, SingleItemRecipe.Factory<?> pFactory, Ingredient pIngredient, ItemLike pResult, int pCount) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
save
(RecipeOutput pRecipeOutput, ResourceLocation pId) static SingleItemRecipeBuilder
stonecutting
(Ingredient pIngredient, RecipeCategory pCategory, ItemLike pResult) static SingleItemRecipeBuilder
stonecutting
(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, 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 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:
unlockedBy
in interfaceRecipeBuilder
-
group
- Specified by:
group
in interfaceRecipeBuilder
-
getResult
- Specified by:
getResult
in interfaceRecipeBuilder
-
save
- Specified by:
save
in interfaceRecipeBuilder
-
ensureValid
-