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 Summary
Nested Classes -
Field Summary
FieldsModifier 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.Recipe
CODEC, CONDITIONAL_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(CraftingContainer p_266686_, HolderLookup.Provider p_335688_) booleancanCraftInDimensions(int p_44161_, int p_44162_) category()getGroup()intgetResultItem(HolderLookup.Provider p_335668_) intgetWidth()booleanbooleanmatches(CraftingContainer p_44176_, Level p_44177_) 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
getTypeMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getRemainingItems, getToastSymbol, isSpecial
-
Field Details
-
pattern
-
result
-
group
-
category
-
showNotification
final boolean showNotification
-
-
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:
getSerializerin interfaceRecipe<CraftingContainer>
-
getGroup
- Specified by:
getGroupin interfaceRecipe<CraftingContainer>
-
category
- Specified by:
categoryin interfaceCraftingRecipe
-
getResultItem
- Specified by:
getResultItemin interfaceRecipe<CraftingContainer>
-
getIngredients
- Specified by:
getIngredientsin interfaceRecipe<CraftingContainer>
-
showNotification
public boolean showNotification()- Specified by:
showNotificationin interfaceRecipe<CraftingContainer>
-
canCraftInDimensions
public boolean canCraftInDimensions(int p_44161_, int p_44162_) - Specified by:
canCraftInDimensionsin interfaceRecipe<CraftingContainer>
-
matches
- Specified by:
matchesin interfaceRecipe<CraftingContainer>
-
assemble
- Specified by:
assemblein interfaceRecipe<CraftingContainer>
-
getWidth
public int getWidth()- Specified by:
getWidthin interfaceIShapedRecipe<CraftingContainer>
-
getHeight
public int getHeight()- Specified by:
getHeightin interfaceIShapedRecipe<CraftingContainer>
-
isIncomplete
public boolean isIncomplete()- Specified by:
isIncompletein interfaceRecipe<CraftingContainer>
-