Package net.minecraft.data.recipes
Class ShapedRecipeBuilder
java.lang.Object
net.minecraft.data.recipes.ShapedRecipeBuilder
- All Implemented Interfaces:
RecipeBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RecipeCategory
private final int
private String
private final HolderGetter
<Item> 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
ConstructorsModifierConstructorDescriptionprivate
ShapedRecipeBuilder
(HolderGetter<Item> p_365072_, RecipeCategory p_249996_, ItemStack result) private
ShapedRecipeBuilder
(HolderGetter<Item> p_365072_, RecipeCategory p_249996_, ItemLike p_251475_, int p_248948_) -
Method Summary
Modifier and TypeMethodDescriptiondefine
(Character p_126125_, Ingredient p_126126_) private ShapedRecipePattern
ensureValid
(ResourceKey<Recipe<?>> p_380175_) void
save
(RecipeOutput p_301098_, ResourceKey<Recipe<?>> p_380072_) static ShapedRecipeBuilder
shaped
(HolderGetter<Item> p_365019_, RecipeCategory p_251325_, ItemStack result) static ShapedRecipeBuilder
shaped
(HolderGetter<Item> p_364036_, RecipeCategory p_250853_, ItemLike p_249747_) static ShapedRecipeBuilder
shaped
(HolderGetter<Item> p_365019_, 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
-
items
-
category
-
result
-
count
private final int count -
resultStack
-
rows
-
key
-
criteria
-
group
-
showNotification
private boolean showNotification
-
-
Constructor Details
-
ShapedRecipeBuilder
private ShapedRecipeBuilder(HolderGetter<Item> p_365072_, RecipeCategory p_249996_, ItemLike p_251475_, int p_248948_) -
ShapedRecipeBuilder
private ShapedRecipeBuilder(HolderGetter<Item> p_365072_, RecipeCategory p_249996_, ItemStack result)
-
-
Method Details
-
shaped
public static ShapedRecipeBuilder shaped(HolderGetter<Item> p_364036_, RecipeCategory p_250853_, ItemLike p_249747_) -
shaped
public static ShapedRecipeBuilder shaped(HolderGetter<Item> p_365019_, RecipeCategory p_251325_, ItemLike p_250636_, int p_249081_) -
shaped
public static ShapedRecipeBuilder shaped(HolderGetter<Item> p_365019_, RecipeCategory p_251325_, ItemStack result) -
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
-