Class ShapelessRecipe
java.lang.Object
net.minecraft.world.item.crafting.ShapelessRecipe
- All Implemented Interfaces:
CraftingRecipe
,Recipe<CraftingContainer>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescription(package private) final CraftingBookCategory
(package private) final String
(package private) final NonNullList<Ingredient>
private final boolean
(package private) final ItemStack
-
Constructor Summary
ConstructorDescriptionShapelessRecipe
(String p_249640_, CraftingBookCategory p_249390_, ItemStack p_252071_, NonNullList<Ingredient> p_250689_) -
Method Summary
Modifier and TypeMethodDescriptionassemble
(CraftingContainer p_44260_, RegistryAccess p_266797_) boolean
canCraftInDimensions
(int p_44252_, int p_44253_) category()
getGroup()
getResultItem
(RegistryAccess p_267111_) boolean
matches
(CraftingContainer p_44262_, Level p_44263_) 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
getType
Methods inherited from interface net.minecraft.world.item.crafting.Recipe
getRemainingItems, getToastSymbol, isIncomplete, isSpecial, showNotification
-
Field Details
-
group
-
category
-
result
-
ingredients
-
isSimple
private final boolean isSimple
-
-
Constructor Details
-
ShapelessRecipe
public ShapelessRecipe(String p_249640_, CraftingBookCategory p_249390_, ItemStack p_252071_, NonNullList<Ingredient> p_250689_)
-
-
Method Details
-
getSerializer
- Specified by:
getSerializer
in interfaceRecipe<CraftingContainer>
-
getGroup
- Specified by:
getGroup
in interfaceRecipe<CraftingContainer>
-
category
- Specified by:
category
in interfaceCraftingRecipe
-
getResultItem
- Specified by:
getResultItem
in interfaceRecipe<CraftingContainer>
-
getIngredients
- Specified by:
getIngredients
in interfaceRecipe<CraftingContainer>
-
matches
- Specified by:
matches
in interfaceRecipe<CraftingContainer>
-
assemble
- Specified by:
assemble
in interfaceRecipe<CraftingContainer>
-
canCraftInDimensions
public boolean canCraftInDimensions(int p_44252_, int p_44253_) - Specified by:
canCraftInDimensions
in interfaceRecipe<CraftingContainer>
-