Class ShapelessRecipe
java.lang.Object
net.minecraft.world.item.crafting.ShapelessRecipe
- All Implemented Interfaces:
CraftingRecipe,Recipe<CraftingInput>
- Direct Known Subclasses:
IngredientTests.CompressedShapelessRecipe
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final CraftingBookCategory(package private) final String(package private) final NonNullList<Ingredient> private final boolean(package private) final ItemStackFields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, STREAM_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionShapelessRecipe(String p_249640_, CraftingBookCategory p_249390_, ItemStack p_252071_, NonNullList<Ingredient> p_250689_) -
Method Summary
Modifier and TypeMethodDescriptionassemble(CraftingInput p_345555_, HolderLookup.Provider p_335725_) booleancanCraftInDimensions(int p_44252_, int p_44253_) category()getGroup()getResultItem(HolderLookup.Provider p_335606_) booleanmatches(CraftingInput p_346123_, 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, 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:
getSerializerin interfaceRecipe<CraftingInput>
-
getGroup
- Specified by:
getGroupin interfaceRecipe<CraftingInput>
-
category
- Specified by:
categoryin interfaceCraftingRecipe
-
getResultItem
- Specified by:
getResultItemin interfaceRecipe<CraftingInput>
-
getIngredients
- Specified by:
getIngredientsin interfaceRecipe<CraftingInput>
-
matches
- Specified by:
matchesin interfaceRecipe<CraftingInput>
-
assemble
- Specified by:
assemblein interfaceRecipe<CraftingInput>
-
canCraftInDimensions
public boolean canCraftInDimensions(int p_44252_, int p_44253_) - Specified by:
canCraftInDimensionsin interfaceRecipe<CraftingInput>
-