Class ComponentSmithingRecipe

java.lang.Object
net.minecraft.world.item.crafting.SimpleSmithingRecipe
net.darkhax.bookshelf.common.impl.recipe.smithing.ComponentSmithingRecipe
All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.SmithingRecipeInput>, net.minecraft.world.item.crafting.SmithingRecipe

public class ComponentSmithingRecipe extends net.minecraft.world.item.crafting.SimpleSmithingRecipe
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.world.item.crafting.Recipe

    net.minecraft.world.item.crafting.Recipe.BookInfo<CategoryType>, net.minecraft.world.item.crafting.Recipe.CommonInfo
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.MapCodec<ComponentSmithingRecipe>
     
    static final net.minecraft.world.item.crafting.RecipeSerializer<ComponentSmithingRecipe>
     
    static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ComponentSmithingRecipe>
     

    Fields inherited from class net.minecraft.world.item.crafting.SimpleSmithingRecipe

    commonInfo

    Fields inherited from interface net.minecraft.world.item.crafting.Recipe

    CODEC, KEY_CODEC
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ComponentSmithingRecipe(net.minecraft.world.item.crafting.Recipe.CommonInfo commonInfo, Optional<net.minecraft.world.item.crafting.Ingredient> template, net.minecraft.world.item.crafting.Ingredient base, Optional<net.minecraft.world.item.crafting.Ingredient> addition, net.minecraft.core.component.DataComponentPatch components)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<net.minecraft.world.item.crafting.Ingredient>
     
    net.minecraft.world.item.ItemStack
    assemble(net.minecraft.world.item.crafting.SmithingRecipeInput input)
     
    net.minecraft.world.item.crafting.Ingredient
     
    net.minecraft.world.item.crafting.Recipe.CommonInfo
     
    net.minecraft.core.component.DataComponentPatch
     
    protected net.minecraft.world.item.crafting.PlacementInfo
     
    net.minecraft.world.item.crafting.RecipeSerializer<? extends net.minecraft.world.item.crafting.SimpleSmithingRecipe>
     
    Optional<net.minecraft.world.item.crafting.Ingredient>
     

    Methods inherited from class net.minecraft.world.item.crafting.SimpleSmithingRecipe

    group, placementInfo, showNotification

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.world.item.crafting.Recipe

    display, isSpecial

    Methods inherited from interface net.minecraft.world.item.crafting.SmithingRecipe

    getType, matches, recipeBookCategory
  • Field Details

    • MAP_CODEC

      public static final com.mojang.serialization.MapCodec<ComponentSmithingRecipe> MAP_CODEC
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ComponentSmithingRecipe> STREAM_CODEC
    • SERIALIZER

      public static final net.minecraft.world.item.crafting.RecipeSerializer<ComponentSmithingRecipe> SERIALIZER
  • Constructor Details

    • ComponentSmithingRecipe

      protected ComponentSmithingRecipe(net.minecraft.world.item.crafting.Recipe.CommonInfo commonInfo, Optional<net.minecraft.world.item.crafting.Ingredient> template, net.minecraft.world.item.crafting.Ingredient base, Optional<net.minecraft.world.item.crafting.Ingredient> addition, net.minecraft.core.component.DataComponentPatch components)
  • Method Details

    • commonInfo

      public net.minecraft.world.item.crafting.Recipe.CommonInfo commonInfo()
    • components

      public net.minecraft.core.component.DataComponentPatch components()
    • assemble

      public net.minecraft.world.item.ItemStack assemble(net.minecraft.world.item.crafting.SmithingRecipeInput input)
    • getSerializer

      public net.minecraft.world.item.crafting.RecipeSerializer<? extends net.minecraft.world.item.crafting.SimpleSmithingRecipe> getSerializer()
      Specified by:
      getSerializer in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.SmithingRecipeInput>
      Specified by:
      getSerializer in interface net.minecraft.world.item.crafting.SmithingRecipe
      Specified by:
      getSerializer in class net.minecraft.world.item.crafting.SimpleSmithingRecipe
    • templateIngredient

      public Optional<net.minecraft.world.item.crafting.Ingredient> templateIngredient()
    • baseIngredient

      public net.minecraft.world.item.crafting.Ingredient baseIngredient()
    • additionIngredient

      public Optional<net.minecraft.world.item.crafting.Ingredient> additionIngredient()
    • createPlacementInfo

      protected net.minecraft.world.item.crafting.PlacementInfo createPlacementInfo()
      Specified by:
      createPlacementInfo in class net.minecraft.world.item.crafting.SimpleSmithingRecipe