Package net.minecraft.data.recipes
Class ShapedRecipeBuilder
java.lang.Object
net.minecraft.data.recipes.ShapedRecipeBuilder
- All Implemented Interfaces:
RecipeBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprivate final RecipeCategory
private final int
private String
private final Map
<Character, Ingredient> private final Item
private boolean
Fields inherited from interface net.minecraft.data.recipes.RecipeBuilder
ROOT_RECIPE_ADVANCEMENT
-
Constructor Summary
ConstructorDescriptionShapedRecipeBuilder
(RecipeCategory p_249996_, ItemLike p_251475_, int p_248948_) -
Method Summary
Modifier and TypeMethodDescriptiondefine
(Character p_126125_, Ingredient p_126126_) private ShapedRecipePattern
ensureValid
(ResourceLocation p_126144_) void
save
(RecipeOutput p_298334_, ResourceLocation p_126142_) static ShapedRecipeBuilder
shaped
(RecipeCategory p_250853_, ItemLike p_249747_) static ShapedRecipeBuilder
shaped
(RecipeCategory p_251325_, ItemLike p_250636_, int p_249081_) showNotification
(boolean p_273326_) unlockedBy
(String p_176751_, Criterion<?> p_300780_) 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 -
rows
-
key
-
criteria
-
group
-
showNotification
private boolean showNotification
-
-
Constructor Details
-
ShapedRecipeBuilder
-
-
Method Details
-
shaped
-
shaped
public static ShapedRecipeBuilder shaped(RecipeCategory p_251325_, ItemLike p_250636_, int p_249081_) -
define
-
define
-
define
-
pattern
-
unlockedBy
- Specified by:
unlockedBy
in interfaceRecipeBuilder
-
group
- Specified by:
group
in interfaceRecipeBuilder
-
showNotification
-
getResult
- Specified by:
getResult
in interfaceRecipeBuilder
-
save
- Specified by:
save
in interfaceRecipeBuilder
-
ensureValid
-