Class SmithingTransformRecipe
java.lang.Object
net.minecraft.world.item.crafting.SimpleSmithingRecipe
net.minecraft.world.item.crafting.SmithingTransformRecipe
- All Implemented Interfaces:
Recipe<SmithingRecipeInput>, SmithingRecipe
-
Nested Class Summary
Nested classes/interfaces inherited from interface Recipe
Recipe.BookInfo<CategoryType>, Recipe.CommonInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<Ingredient> private final Ingredientstatic final com.mojang.serialization.MapCodec<SmithingTransformRecipe> private final ItemStackTemplatestatic final RecipeSerializer<SmithingTransformRecipe> static final StreamCodec<RegistryFriendlyByteBuf, SmithingTransformRecipe> private final Optional<Ingredient> Fields inherited from class SimpleSmithingRecipe
commonInfoFields inherited from interface Recipe
CODEC, CONDITIONAL_CODEC, KEY_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionSmithingTransformRecipe(Recipe.CommonInfo commonInfo, Optional<Ingredient> template, Ingredient base, Optional<Ingredient> addition, ItemStackTemplate result) -
Method Summary
Modifier and TypeMethodDescriptionassemble(SmithingRecipeInput input) protected PlacementInfodisplay()Methods inherited from class SimpleSmithingRecipe
group, placementInfo, showNotificationMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SmithingRecipe
getType, matches, recipeBookCategory
-
Field Details
-
MAP_CODEC
-
STREAM_CODEC
-
SERIALIZER
-
template
-
base
-
addition
-
result
-
-
Constructor Details
-
SmithingTransformRecipe
public SmithingTransformRecipe(Recipe.CommonInfo commonInfo, Optional<Ingredient> template, Ingredient base, Optional<Ingredient> addition, ItemStackTemplate result)
-
-
Method Details
-
assemble
-
templateIngredient
-
baseIngredient
-
additionIngredient
-
getSerializer
- Specified by:
getSerializerin interfaceRecipe<SmithingRecipeInput>- Specified by:
getSerializerin interfaceSmithingRecipe- Specified by:
getSerializerin classSimpleSmithingRecipe
-
createPlacementInfo
- Specified by:
createPlacementInfoin classSimpleSmithingRecipe
-
display
-