Package net.minecraft.data.recipes
Class ShapelessRecipeBuilder
java.lang.Object
net.minecraft.data.recipes.ShapelessRecipeBuilder
- All Implemented Interfaces:
RecipeBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RecipeCategoryprivate Stringprivate final List<Ingredient> private final HolderGetter<Item> private final ItemStackFields inherited from interface net.minecraft.data.recipes.RecipeBuilder
ROOT_RECIPE_ADVANCEMENT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateShapelessRecipeBuilder(HolderGetter<Item> pItems, RecipeCategory pCategory, ItemStack pResult) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidensureValid(ResourceKey<Recipe<?>> pRecipe) Adds an ingredient that can be any item in the given tag.requires(Ingredient pIngredient) Adds an ingredient.requires(Ingredient pIngredient, int pQuantity) Adds an ingredient multiple times.Adds an ingredient of the given item.Adds the given ingredient multiple times.voidsave(RecipeOutput p_301215_, ResourceKey<Recipe<?>> p_379987_) static ShapelessRecipeBuildershapeless(HolderGetter<Item> pItems, RecipeCategory pCategory, ItemStack pResult) static ShapelessRecipeBuildershapeless(HolderGetter<Item> pItems, RecipeCategory pCategory, ItemLike pResult) static ShapelessRecipeBuildershapeless(HolderGetter<Item> pItems, RecipeCategory pCategory, ItemLike pResult, int pCount) unlockedBy(String p_176781_, Criterion<?> p_300897_) 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
-
items
-
category
-
result
-
ingredients
-
criteria
-
group
-
-
Constructor Details
-
ShapelessRecipeBuilder
private ShapelessRecipeBuilder(HolderGetter<Item> pItems, RecipeCategory pCategory, ItemStack pResult)
-
-
Method Details
-
shapeless
public static ShapelessRecipeBuilder shapeless(HolderGetter<Item> pItems, RecipeCategory pCategory, ItemStack pResult) -
shapeless
public static ShapelessRecipeBuilder shapeless(HolderGetter<Item> pItems, RecipeCategory pCategory, ItemLike pResult) -
shapeless
public static ShapelessRecipeBuilder shapeless(HolderGetter<Item> pItems, RecipeCategory pCategory, ItemLike pResult, int pCount) -
requires
Adds an ingredient that can be any item in the given tag. -
requires
Adds an ingredient of the given item. -
requires
Adds the given ingredient multiple times. -
requires
Adds an ingredient. -
requires
Adds an ingredient multiple times. -
unlockedBy
- Specified by:
unlockedByin interfaceRecipeBuilder
-
group
- Specified by:
groupin interfaceRecipeBuilder
-
getResult
- Specified by:
getResultin interfaceRecipeBuilder
-
save
- Specified by:
savein interfaceRecipeBuilder
-
ensureValid
-