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 boolean
private PlacementInfo
(package private) final ItemStack
Fields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, KEY_CODEC, STREAM_CODEC
-
Constructor Summary
ConstructorsConstructorDescriptionShapelessRecipe
(String p_249640_, CraftingBookCategory p_249390_, ItemStack p_252071_, List<Ingredient> p_361103_) -
Method Summary
Modifier and TypeMethodDescriptionassemble
(CraftingInput p_345555_, HolderLookup.Provider p_335725_) category()
display()
group()
boolean
matches
(CraftingInput p_346123_, 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
getRemainingItems, getType, recipeBookCategory
Methods 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 p_249640_, CraftingBookCategory p_249390_, ItemStack p_252071_, List<Ingredient> p_361103_)
-
-
Method Details
-
getSerializer
- Specified by:
getSerializer
in interfaceCraftingRecipe
- Specified by:
getSerializer
in interfaceRecipe<CraftingInput>
-
group
- Specified by:
group
in interfaceRecipe<CraftingInput>
-
category
- Specified by:
category
in interfaceCraftingRecipe
-
placementInfo
- Specified by:
placementInfo
in interfaceRecipe<CraftingInput>
-
matches
- Specified by:
matches
in interfaceRecipe<CraftingInput>
-
assemble
- Specified by:
assemble
in interfaceRecipe<CraftingInput>
-
display
- Specified by:
display
in interfaceRecipe<CraftingInput>
-