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 Stringfinal ShapedRecipePatternprivate PlacementInfo(package private) final ItemStack(package private) final booleanFields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, KEY_CODEC, STREAM_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionShapedRecipe(String pGroup, CraftingBookCategory pCategory, ShapedRecipePattern pPattern, ItemStack pResult) ShapedRecipe(String pGroup, CraftingBookCategory pCategory, ShapedRecipePattern pPattern, ItemStack pResult, boolean pShowNotification) -
Method Summary
Modifier and TypeMethodDescriptionassemble(CraftingInput p_345201_, HolderLookup.Provider p_335688_) category()display()intRecipeSerializer<? extends ShapedRecipe> intgetWidth()group()booleanmatches(CraftingInput p_345040_, Level p_44167_) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 pGroup, CraftingBookCategory pCategory, ShapedRecipePattern pPattern, ItemStack pResult, boolean pShowNotification) -
ShapedRecipe
public ShapedRecipe(String pGroup, CraftingBookCategory pCategory, ShapedRecipePattern pPattern, ItemStack pResult)
-
-
Method Details
-
getSerializer
- Specified by:
getSerializerin interfaceCraftingRecipe- Specified by:
getSerializerin interfaceRecipe<CraftingInput>
-
group
- Specified by:
groupin interfaceRecipe<CraftingInput>
-
category
- Specified by:
categoryin interfaceCraftingRecipe
-
getIngredients
-
placementInfo
- Specified by:
placementInfoin interfaceRecipe<CraftingInput>
-
showNotification
public boolean showNotification()- Specified by:
showNotificationin interfaceRecipe<CraftingInput>
-
matches
- Specified by:
matchesin interfaceRecipe<CraftingInput>
-
assemble
- Specified by:
assemblein interfaceRecipe<CraftingInput>
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
display
- Specified by:
displayin interfaceRecipe<CraftingInput>
-