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 category, ItemLike result, int count) -
Method Summary
Modifier and TypeMethodDescriptionAdds a key to the recipe pattern.define(Character symbol, Ingredient ingredient) Adds a key to the recipe pattern.Adds a key to the recipe pattern.private ShapedRecipePatternensureValid(ResourceLocation loaction) Adds a new entry to the patterns for this recipe.voidsave(RecipeOutput recipeOutput, ResourceLocation id) static ShapedRecipeBuildershaped(RecipeCategory p_251325_, ItemStack result) static ShapedRecipeBuildershaped(RecipeCategory category, ItemLike result) Creates a new builder for a shaped recipe.static ShapedRecipeBuildershaped(RecipeCategory category, ItemLike result, int count) Creates a new builder for a shaped recipe.showNotification(boolean showNotification) unlockedBy(String name, Criterion<?> criterion) 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
-