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
private final ResourceLocation
(package private) final NonNullList<Ingredient>
private final boolean
(package private) final ItemStack
-
Constructor Summary
ConstructorDescriptionShapelessRecipe
(ResourceLocation p_251840_, 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()
getId()
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
-
id
-
group
-
category
-
result
-
ingredients
-
isSimple
private final boolean isSimple
-
-
Constructor Details
-
ShapelessRecipe
public ShapelessRecipe(ResourceLocation p_251840_, String p_249640_, CraftingBookCategory p_249390_, ItemStack p_252071_, NonNullList<Ingredient> p_250689_)
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceRecipe<CraftingContainer>
-
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>
-