Class ShapedRecipeBuilder
java.lang.Object
net.minecraft.data.recipes.ShapedRecipeBuilder
- All Implemented Interfaces:
RecipeBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RecipeUnlockAdvancementBuilderprivate final RecipeCategoryprivate @Nullable Stringprivate final HolderGetter<Item> private final Map<Character, Ingredient> private final ItemStackTemplateprivate booleanFields inherited from interface RecipeBuilder
ROOT_RECIPE_ADVANCEMENT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateShapedRecipeBuilder(HolderGetter<Item> items, RecipeCategory category, ItemStackTemplate result) privateShapedRecipeBuilder(HolderGetter<Item> items, RecipeCategory category, ItemLike result, int count) -
Method Summary
Modifier and TypeMethodDescriptionResourceKey<Recipe<?>> Adds 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.Adds a new entry to the patterns for this recipe.voidsave(RecipeOutput output, ResourceKey<Recipe<?>> id) static ShapedRecipeBuildershaped(HolderGetter<Item> items, RecipeCategory category, ItemStackTemplate result) static ShapedRecipeBuildershaped(HolderGetter<Item> items, RecipeCategory category, ItemLike item) static ShapedRecipeBuildershaped(HolderGetter<Item> items, RecipeCategory category, ItemLike item, int count) showNotification(boolean showNotification) unlockedBy(String name, Criterion<?> criterion) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RecipeBuilder
save, save
-
Field Details
-
items
-
category
-
result
-
rows
-
key
-
advancementBuilder
-
group
-
showNotification
private boolean showNotification
-
-
Constructor Details
-
ShapedRecipeBuilder
private ShapedRecipeBuilder(HolderGetter<Item> items, RecipeCategory category, ItemStackTemplate result) -
ShapedRecipeBuilder
private ShapedRecipeBuilder(HolderGetter<Item> items, RecipeCategory category, ItemLike result, int count)
-
-
Method Details
-
shaped
public static ShapedRecipeBuilder shaped(HolderGetter<Item> items, RecipeCategory category, ItemLike item) -
shaped
public static ShapedRecipeBuilder shaped(HolderGetter<Item> items, RecipeCategory category, ItemLike item, int count) -
shaped
public static ShapedRecipeBuilder shaped(HolderGetter<Item> items, RecipeCategory category, ItemStackTemplate 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:
unlockedByin interfaceRecipeBuilder
-
group
- Specified by:
groupin interfaceRecipeBuilder
-
showNotification
-
defaultId
- Specified by:
defaultIdin interfaceRecipeBuilder
-
save
- Specified by:
savein interfaceRecipeBuilder
-