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 RecipeCategory
private String
private final List
<Ingredient> private final HolderGetter
<Item> private final ItemStack
Fields inherited from interface net.minecraft.data.recipes.RecipeBuilder
ROOT_RECIPE_ADVANCEMENT
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ShapelessRecipeBuilder
(HolderGetter<Item> pItems, RecipeCategory pCategory, ItemStack pResult) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
ensureValid
(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.void
save
(RecipeOutput pOutput, ResourceKey<Recipe<?>> pResourceKey) static ShapelessRecipeBuilder
shapeless
(HolderGetter<Item> pItems, RecipeCategory pCategory, ItemStack pResult) static ShapelessRecipeBuilder
shapeless
(HolderGetter<Item> pItems, RecipeCategory pCategory, ItemLike pResult) static ShapelessRecipeBuilder
shapeless
(HolderGetter<Item> pItems, 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
-
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:
unlockedBy
in interfaceRecipeBuilder
-
group
- Specified by:
group
in interfaceRecipeBuilder
-
getResult
- Specified by:
getResult
in interfaceRecipeBuilder
-
save
- Specified by:
save
in interfaceRecipeBuilder
-
ensureValid
-