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 RecipeCategoryprivate final intprivate Stringprivate final Map<Character, Ingredient> private final Itemprivate final ItemStackprivate booleanFields 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 ShapedRecipePatternensureValid(ResourceLocation pLoaction) Adds a new entry to the patterns for this recipe.voidsave(RecipeOutput pRecipeOutput, ResourceLocation pId) static ShapedRecipeBuildershaped(RecipeCategory p_251325_, ItemStack result) static ShapedRecipeBuildershaped(RecipeCategory pCategory, ItemLike pResult) Creates a new builder for a shaped recipe.static ShapedRecipeBuildershaped(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, waitMethods 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:
unlockedByin interfaceRecipeBuilder
-
group
- Specified by:
groupin interfaceRecipeBuilder
-
showNotification
-
getResult
- Specified by:
getResultin interfaceRecipeBuilder
-
save
- Specified by:
savein interfaceRecipeBuilder
-
ensureValid
-