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> p_363417_, RecipeCategory p_250837_, ItemStack p_363612_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
ensureValid
(ResourceKey<Recipe<?>> p_379745_) requires
(Ingredient p_126185_) requires
(Ingredient p_126187_, int p_126188_) void
save
(RecipeOutput p_301215_, ResourceKey<Recipe<?>> p_379987_) static ShapelessRecipeBuilder
shapeless
(HolderGetter<Item> p_364294_, RecipeCategory p_361887_, ItemStack p_364359_) static ShapelessRecipeBuilder
shapeless
(HolderGetter<Item> p_362315_, RecipeCategory p_250714_, ItemLike p_249659_) static ShapelessRecipeBuilder
shapeless
(HolderGetter<Item> p_360448_, RecipeCategory p_252339_, ItemLike p_250836_, int p_249928_) unlockedBy
(String p_176781_, Criterion<?> p_300897_) 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> p_363417_, RecipeCategory p_250837_, ItemStack p_363612_)
-
-
Method Details
-
shapeless
public static ShapelessRecipeBuilder shapeless(HolderGetter<Item> p_364294_, RecipeCategory p_361887_, ItemStack p_364359_) -
shapeless
public static ShapelessRecipeBuilder shapeless(HolderGetter<Item> p_362315_, RecipeCategory p_250714_, ItemLike p_249659_) -
shapeless
public static ShapelessRecipeBuilder shapeless(HolderGetter<Item> p_360448_, RecipeCategory p_252339_, ItemLike p_250836_, int p_249928_) -
requires
-
requires
-
requires
-
requires
-
requires
-
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
-