Class ShapedRecipe
java.lang.Object
net.minecraft.world.item.crafting.ShapedRecipe
- All Implemented Interfaces:
CraftingRecipe
,Recipe<CraftingInput>
- Direct Known Subclasses:
MapExtendingRecipe
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final CraftingBookCategory
(package private) final String
final ShapedRecipePattern
private PlacementInfo
(package private) final ItemStack
(package private) final boolean
Fields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, KEY_CODEC, STREAM_CODEC
-
Constructor Summary
ConstructorsConstructorDescriptionShapedRecipe
(String p_250221_, CraftingBookCategory p_250716_, ShapedRecipePattern p_312814_, ItemStack p_248581_) ShapedRecipe
(String p_272759_, CraftingBookCategory p_273506_, ShapedRecipePattern p_312827_, ItemStack p_272852_, boolean p_312010_) -
Method Summary
Modifier and TypeMethodDescriptionassemble
(CraftingInput p_345201_, HolderLookup.Provider p_335688_) category()
display()
int
RecipeSerializer
<? extends ShapedRecipe> int
getWidth()
group()
boolean
matches
(CraftingInput p_345040_, Level p_44167_) boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.item.crafting.CraftingRecipe
getRemainingItems, getType, recipeBookCategory
-
Field Details
-
pattern
-
result
-
group
-
category
-
showNotification
final boolean showNotification -
placementInfo
-
-
Constructor Details
-
ShapedRecipe
public ShapedRecipe(String p_272759_, CraftingBookCategory p_273506_, ShapedRecipePattern p_312827_, ItemStack p_272852_, boolean p_312010_) -
ShapedRecipe
public ShapedRecipe(String p_250221_, CraftingBookCategory p_250716_, ShapedRecipePattern p_312814_, ItemStack p_248581_)
-
-
Method Details
-
getSerializer
- Specified by:
getSerializer
in interfaceCraftingRecipe
- Specified by:
getSerializer
in interfaceRecipe<CraftingInput>
-
group
- Specified by:
group
in interfaceRecipe<CraftingInput>
-
category
- Specified by:
category
in interfaceCraftingRecipe
-
getIngredients
-
placementInfo
- Specified by:
placementInfo
in interfaceRecipe<CraftingInput>
-
showNotification
public boolean showNotification()- Specified by:
showNotification
in interfaceRecipe<CraftingInput>
-
matches
- Specified by:
matches
in interfaceRecipe<CraftingInput>
-
assemble
- Specified by:
assemble
in interfaceRecipe<CraftingInput>
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
display
- Specified by:
display
in interfaceRecipe<CraftingInput>
-