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> pItems, RecipeCategory pCategory, ItemLike pResult, int pCount) -
Method Summary
Modifier and TypeMethodDescriptionAdds a key to the recipe pattern.define
(Character pSymbol, Ingredient pIngredient) Adds a key to the recipe pattern.Adds a key to the recipe pattern.private ShapedRecipePattern
ensureValid
(ResourceKey<Recipe<?>> pRecipe) Adds a new entry to the patterns for this recipe.void
save
(RecipeOutput pOutput, ResourceKey<Recipe<?>> pResourceKey) static ShapedRecipeBuilder
shaped
(HolderGetter<Item> p_365019_, RecipeCategory p_251325_, ItemStack result) static ShapedRecipeBuilder
shaped
(HolderGetter<Item> pItems, RecipeCategory pCategory, ItemLike pResult) static ShapedRecipeBuilder
shaped
(HolderGetter<Item> pItems, RecipeCategory pCategory, ItemLike pResult, int pCount) showNotification
(boolean pShowNotification) unlockedBy
(String pName, Criterion<?> pCriterion) 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> pItems, RecipeCategory pCategory, ItemLike pResult, int pCount) -
ShapedRecipeBuilder
private ShapedRecipeBuilder(HolderGetter<Item> p_365072_, RecipeCategory p_249996_, ItemStack result)
-
-
Method Details
-
shaped
public static ShapedRecipeBuilder shaped(HolderGetter<Item> pItems, RecipeCategory pCategory, ItemLike pResult) -
shaped
public static ShapedRecipeBuilder shaped(HolderGetter<Item> pItems, RecipeCategory pCategory, ItemLike pResult, int pCount) -
shaped
public static ShapedRecipeBuilder shaped(HolderGetter<Item> p_365019_, RecipeCategory p_251325_, ItemStack result) -
define
Adds a key to the recipe pattern. -
define
Adds a key to the recipe pattern. -
define
Adds a key to the recipe pattern. -
pattern
Adds a new entry to the patterns for this recipe. -
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
-