Package net.minecraft.data.recipes
Class ShapelessRecipeBuilder
java.lang.Object
net.minecraft.data.recipes.ShapelessRecipeBuilder
- All Implemented Interfaces:
RecipeBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprivate final RecipeCategory
private final int
private String
private final NonNullList<Ingredient>
private final Item
private final ItemStack
Fields inherited from interface net.minecraft.data.recipes.RecipeBuilder
ROOT_RECIPE_ADVANCEMENT
-
Constructor Summary
ConstructorDescriptionShapelessRecipeBuilder
(RecipeCategory p_250837_, ItemStack result) ShapelessRecipeBuilder
(RecipeCategory p_250837_, ItemLike p_251897_, int p_252227_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
ensureValid
(ResourceLocation p_126208_) requires
(Ingredient p_126185_) requires
(Ingredient p_126187_, int p_126188_) void
save
(RecipeOutput p_301215_, ResourceLocation p_126206_) static ShapelessRecipeBuilder
shapeless
(RecipeCategory p_252339_, ItemStack result) static ShapelessRecipeBuilder
shapeless
(RecipeCategory p_250714_, ItemLike p_249659_) static ShapelessRecipeBuilder
shapeless
(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
-
category
-
result
-
count
private final int count -
resultStack
-
ingredients
-
criteria
-
group
-
-
Constructor Details
-
ShapelessRecipeBuilder
-
ShapelessRecipeBuilder
-
-
Method Details
-
shapeless
-
shapeless
public static ShapelessRecipeBuilder shapeless(RecipeCategory p_252339_, ItemLike p_250836_, int p_249928_) -
shapeless
-
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
-