Class ShapedRecipe
java.lang.Object
net.minecraft.world.item.crafting.ShapedRecipe
- All Implemented Interfaces:
- CraftingRecipe,- Recipe<CraftingContainer>,- IShapedRecipe<CraftingContainer>
- Direct Known Subclasses:
- MapExtendingRecipe
public class ShapedRecipe
extends Object
implements CraftingRecipe, IShapedRecipe<CraftingContainer>
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescription(package private) final CraftingBookCategory(package private) final String(package private) final ShapedRecipePattern(package private) final ItemStack(package private) final booleanFields inherited from interface net.minecraft.world.item.crafting.RecipeCODEC, CONDITIONAL_CODEC
- 
Constructor SummaryConstructorsConstructorDescriptionShapedRecipe(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 SummaryModifier and TypeMethodDescriptionassemble(CraftingContainer p_266686_, RegistryAccess p_266725_) booleancanCraftInDimensions(int p_44161_, int p_44162_) category()getGroup()intintintgetResultItem(RegistryAccess p_266881_) intgetWidth()booleanbooleanmatches(CraftingContainer p_44176_, Level p_44177_) booleanMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.CraftingRecipegetTypeMethods inherited from interface net.minecraft.world.item.crafting.RecipegetRemainingItems, getToastSymbol, isSpecial
- 
Field Details- 
pattern
- 
result
- 
group
- 
category
- 
showNotificationfinal boolean showNotification
 
- 
- 
Constructor Details- 
ShapedRecipepublic ShapedRecipe(String p_272759_, CraftingBookCategory p_273506_, ShapedRecipePattern p_312827_, ItemStack p_272852_, boolean p_312010_) 
- 
ShapedRecipepublic ShapedRecipe(String p_250221_, CraftingBookCategory p_250716_, ShapedRecipePattern p_312814_, ItemStack p_248581_) 
 
- 
- 
Method Details- 
getSerializer- Specified by:
- getSerializerin interface- Recipe<CraftingContainer>
 
- 
getGroup- Specified by:
- getGroupin interface- Recipe<CraftingContainer>
 
- 
getRecipeWidthpublic int getRecipeWidth()- Specified by:
- getRecipeWidthin interface- IShapedRecipe<CraftingContainer>
 
- 
category- Specified by:
- categoryin interface- CraftingRecipe
 
- 
getRecipeHeightpublic int getRecipeHeight()- Specified by:
- getRecipeHeightin interface- IShapedRecipe<CraftingContainer>
 
- 
getResultItem- Specified by:
- getResultItemin interface- Recipe<CraftingContainer>
 
- 
getIngredients- Specified by:
- getIngredientsin interface- Recipe<CraftingContainer>
 
- 
showNotificationpublic boolean showNotification()- Specified by:
- showNotificationin interface- Recipe<CraftingContainer>
 
- 
canCraftInDimensionspublic boolean canCraftInDimensions(int p_44161_, int p_44162_) - Specified by:
- canCraftInDimensionsin interface- Recipe<CraftingContainer>
 
- 
matches- Specified by:
- matchesin interface- Recipe<CraftingContainer>
 
- 
assemble- Specified by:
- assemblein interface- Recipe<CraftingContainer>
 
- 
getWidthpublic int getWidth()
- 
getHeightpublic int getHeight()
- 
isIncompletepublic boolean isIncomplete()- Specified by:
- isIncompletein interface- Recipe<CraftingContainer>
 
 
-