Class ShapelessRecipe
java.lang.Object
net.minecraft.world.item.crafting.ShapelessRecipe
- All Implemented Interfaces:
CraftingRecipe,Recipe<CraftingInput>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final CraftingBookCategory(package private) final String(package private) final List<Ingredient> private final booleanprivate PlacementInfo(package private) final ItemStackFields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, STREAM_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionShapelessRecipe(String pGroup, CraftingBookCategory pCategory, ItemStack pResult, List<Ingredient> pIngredients) -
Method Summary
Modifier and TypeMethodDescriptionassemble(CraftingInput p_345555_, HolderLookup.Provider p_335725_) category()display()group()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
getRemainingItems, getType, recipeBookCategoryMethods inherited from interface net.minecraft.world.item.crafting.Recipe
isSpecial, showNotification
-
Field Details
-
group
-
category
-
result
-
ingredients
-
placementInfo
-
isSimple
private final boolean isSimple
-
-
Constructor Details
-
ShapelessRecipe
public ShapelessRecipe(String pGroup, CraftingBookCategory pCategory, ItemStack pResult, List<Ingredient> pIngredients)
-
-
Method Details
-
getSerializer
- Specified by:
getSerializerin interfaceCraftingRecipe- Specified by:
getSerializerin interfaceRecipe<CraftingInput>
-
group
- Specified by:
groupin interfaceRecipe<CraftingInput>
-
category
- Specified by:
categoryin interfaceCraftingRecipe
-
placementInfo
- Specified by:
placementInfoin interfaceRecipe<CraftingInput>
-
matches
- Specified by:
matchesin interfaceRecipe<CraftingInput>
-
assemble
- Specified by:
assemblein interfaceRecipe<CraftingInput>
-
display
- Specified by:
displayin interfaceRecipe<CraftingInput>
-