Class ShapelessRecipeBuilder
java.lang.Object
net.minecraft.data.recipes.ShapelessRecipeBuilder
- All Implemented Interfaces:
RecipeBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RecipeUnlockAdvancementBuilderprivate final RecipeCategoryprivate @Nullable Stringprivate final List<Ingredient> private final HolderGetter<Item> private final ItemStackTemplateFields inherited from interface RecipeBuilder
ROOT_RECIPE_ADVANCEMENT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateShapelessRecipeBuilder(HolderGetter<Item> items, RecipeCategory category, ItemStackTemplate result) -
Method Summary
Modifier and TypeMethodDescriptionResourceKey<Recipe<?>> Adds an ingredient that can be any item in the given tag.requires(Ingredient ingredient) Adds an ingredient.requires(Ingredient ingredient, int count) Adds an ingredient multiple times.Adds an ingredient of the given item.Adds the given ingredient multiple times.voidsave(RecipeOutput output, ResourceKey<Recipe<?>> id) static ShapelessRecipeBuildershapeless(HolderGetter<Item> items, RecipeCategory category, ItemStackTemplate result) static ShapelessRecipeBuildershapeless(HolderGetter<Item> items, RecipeCategory category, ItemLike item) static ShapelessRecipeBuildershapeless(HolderGetter<Item> items, RecipeCategory category, ItemLike item, int count) unlockedBy(String name, Criterion<?> criterion) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RecipeBuilder
save, save
-
Field Details
-
items
-
category
-
result
-
ingredients
-
advancementBuilder
-
group
-
-
Constructor Details
-
ShapelessRecipeBuilder
private ShapelessRecipeBuilder(HolderGetter<Item> items, RecipeCategory category, ItemStackTemplate result)
-
-
Method Details
-
shapeless
public static ShapelessRecipeBuilder shapeless(HolderGetter<Item> items, RecipeCategory category, ItemStackTemplate result) -
shapeless
public static ShapelessRecipeBuilder shapeless(HolderGetter<Item> items, RecipeCategory category, ItemLike item) -
shapeless
public static ShapelessRecipeBuilder shapeless(HolderGetter<Item> items, RecipeCategory category, ItemLike item, int count) -
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
-
defaultId
- Specified by:
defaultIdin interfaceRecipeBuilder
-
save
- Specified by:
savein interfaceRecipeBuilder
-