Package net.minecraft.data.recipes
Class ShapelessRecipeBuilder
java.lang.Object
net.minecraft.data.recipes.CraftingRecipeBuilder
net.minecraft.data.recipes.ShapelessRecipeBuilder
- All Implemented Interfaces:
RecipeBuilder
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.data.recipes.CraftingRecipeBuilder
CraftingRecipeBuilder.CraftingResult
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Advancement.Builder
private final RecipeCategory
private final int
private String
private final List<Ingredient>
private final Item
Fields inherited from interface net.minecraft.data.recipes.RecipeBuilder
ROOT_RECIPE_ADVANCEMENT
-
Constructor Summary
ConstructorDescriptionShapelessRecipeBuilder
(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
(Consumer<FinishedRecipe> p_126205_, ResourceLocation p_126206_) static ShapelessRecipeBuilder
shapeless
(RecipeCategory p_250714_, ItemLike p_249659_) static ShapelessRecipeBuilder
shapeless
(RecipeCategory p_252339_, ItemLike p_250836_, int p_249928_) unlockedBy
(String p_126197_, CriterionTriggerInstance p_126198_) Methods inherited from class net.minecraft.data.recipes.CraftingRecipeBuilder
determineBookCategory
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 -
ingredients
-
advancement
-
group
-
-
Constructor Details
-
ShapelessRecipeBuilder
-
-
Method Details
-
shapeless
-
shapeless
public static ShapelessRecipeBuilder shapeless(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
-