Class ImbueRecipe
java.lang.Object
net.minecraft.world.item.crafting.NormalCraftingRecipe
net.minecraft.world.item.crafting.ImbueRecipe
- All Implemented Interfaces:
CraftingRecipe, Recipe<CraftingInput>
-
Nested Class Summary
Nested classes/interfaces inherited from interface CraftingRecipe
CraftingRecipe.CraftingBookInfoNested classes/interfaces inherited from interface Recipe
Recipe.BookInfo<CategoryType>, Recipe.CommonInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ImbueRecipe> private final Ingredientprivate final ItemStackTemplatestatic final RecipeSerializer<ImbueRecipe> private final Ingredientstatic final StreamCodec<RegistryFriendlyByteBuf, ImbueRecipe> Fields inherited from class NormalCraftingRecipe
bookInfo, commonInfoFields inherited from interface Recipe
CODEC, CONDITIONAL_CODEC, KEY_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionImbueRecipe(Recipe.CommonInfo commonInfo, CraftingRecipe.CraftingBookInfo bookInfo, Ingredient source, Ingredient material, ItemStackTemplate result) -
Method Summary
Modifier and TypeMethodDescriptionassemble(CraftingInput input) protected PlacementInfodisplay()booleanmatches(CraftingInput input, Level level) Methods inherited from class NormalCraftingRecipe
category, group, placementInfo, showNotificationMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CraftingRecipe
getRemainingItems, getType, recipeBookCategory
-
Field Details
-
MAP_CODEC
-
STREAM_CODEC
-
SERIALIZER
-
source
-
material
-
result
-
-
Constructor Details
-
ImbueRecipe
public ImbueRecipe(Recipe.CommonInfo commonInfo, CraftingRecipe.CraftingBookInfo bookInfo, Ingredient source, Ingredient material, ItemStackTemplate result)
-
-
Method Details
-
matches
-
assemble
-
getSerializer
- Specified by:
getSerializerin interfaceCraftingRecipe- Specified by:
getSerializerin interfaceRecipe<CraftingInput>- Specified by:
getSerializerin classNormalCraftingRecipe
-
createPlacementInfo
- Specified by:
createPlacementInfoin classNormalCraftingRecipe
-
display
-