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 final ItemStack
private boolean
Fields inherited from interface net.minecraft.data.recipes.RecipeBuilder
ROOT_RECIPE_ADVANCEMENT
-
Constructor Summary
ConstructorDescriptionShapedRecipeBuilder
(RecipeCategory p_249996_, ItemStack result) ShapedRecipeBuilder
(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_301098_, ResourceLocation p_126142_) static ShapedRecipeBuilder
shaped
(RecipeCategory p_251325_, ItemStack result) 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_126133_, Criterion<?> p_301126_) 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
-
rows
-
key
-
criteria
-
group
-
showNotification
private boolean showNotification
-
-
Constructor Details
-
ShapedRecipeBuilder
-
ShapedRecipeBuilder
-
-
Method Details
-
shaped
-
shaped
public static ShapedRecipeBuilder shaped(RecipeCategory p_251325_, ItemLike p_250636_, int p_249081_) -
shaped
-
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
-