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) String
private ResourceLocation
(package private) NonNullList<Ingredient>
private boolean
(package private) ItemStack
-
Constructor Summary
ConstructorDescriptionShapelessRecipe(ResourceLocation p_44246_, String p_44247_, ItemStack p_44248_, NonNullList<Ingredient> p_44249_)
-
Method Summary
Modifier and TypeMethodDescriptionassemble(CraftingContainer p_44260_)
boolean
canCraftInDimensions(int p_44252_, int p_44253_)
getGroup()
getId()
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
-
Field Details
-
id
-
group
-
result
-
ingredients
-
isSimple
private final boolean isSimple
-
-
Constructor Details
-
ShapelessRecipe
public ShapelessRecipe(ResourceLocation p_44246_, String p_44247_, ItemStack p_44248_, NonNullList<Ingredient> p_44249_)
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceRecipe<CraftingContainer>
-
getSerializer
- Specified by:
getSerializer
in interfaceRecipe<CraftingContainer>
-
getGroup
- Specified by:
getGroup
in interfaceRecipe<CraftingContainer>
-
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>
-