Class ShapelessRecipe
java.lang.Object
net.minecraft.world.item.crafting.ShapelessRecipe
- All Implemented Interfaces:
CraftingRecipe,Recipe<CraftingContainer>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Stringprivate final ResourceLocation(package private) final NonNullList<Ingredient>private final boolean(package private) final ItemStack -
Constructor Summary
ConstructorsConstructorDescriptionShapelessRecipe(ResourceLocation p_44246_, String p_44247_, ItemStack p_44248_, NonNullList<Ingredient> p_44249_) -
Method Summary
Modifier and TypeMethodDescriptionassemble(CraftingContainer p_44260_) booleancanCraftInDimensions(int p_44252_, int p_44253_) getGroup()getId()booleanmatches(CraftingContainer p_44262_, Level p_44263_) Methods 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, 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:
getIdin interfaceRecipe<CraftingContainer>
-
getSerializer
- Specified by:
getSerializerin interfaceRecipe<CraftingContainer>
-
getGroup
- Specified by:
getGroupin interfaceRecipe<CraftingContainer>
-
getResultItem
- Specified by:
getResultItemin interfaceRecipe<CraftingContainer>
-
getIngredients
- Specified by:
getIngredientsin interfaceRecipe<CraftingContainer>
-
matches
- Specified by:
matchesin interfaceRecipe<CraftingContainer>
-
assemble
- Specified by:
assemblein interfaceRecipe<CraftingContainer>
-
canCraftInDimensions
public boolean canCraftInDimensions(int p_44252_, int p_44253_) - Specified by:
canCraftInDimensionsin interfaceRecipe<CraftingContainer>
-