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 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
ConstructorsConstructorDescriptionShapedRecipeBuilder
(RecipeCategory p_249996_, ItemStack result) ShapedRecipeBuilder
(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
(ResourceLocation pLoaction) Adds a new entry to the patterns for this recipe.void
save
(RecipeOutput pRecipeOutput, ResourceLocation pId) static ShapedRecipeBuilder
shaped
(RecipeCategory p_251325_, ItemStack result) static ShapedRecipeBuilder
shaped
(RecipeCategory pCategory, ItemLike pResult) Creates a new builder for a shaped recipe.static ShapedRecipeBuilder
shaped
(RecipeCategory pCategory, ItemLike pResult, int pCount) Creates a new builder for a shaped recipe.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
-
category
-
result
-
count
private final int count -
resultStack
-
rows
-
key
-
criteria
-
group
-
showNotification
private boolean showNotification
-
-
Constructor Details
-
ShapedRecipeBuilder
-
ShapedRecipeBuilder
-
-
Method Details
-
shaped
Creates a new builder for a shaped recipe. -
shaped
Creates a new builder for a shaped recipe. -
shaped
-
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
-