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
FieldsModifier and TypeFieldDescriptionstatic 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
commonInfoFields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, KEY_CODEC -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedComponentSmithingRecipe(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 TypeMethodDescriptionOptional<net.minecraft.world.item.crafting.Ingredient> net.minecraft.world.item.ItemStackassemble(net.minecraft.world.item.crafting.SmithingRecipeInput input) net.minecraft.world.item.crafting.Ingredientnet.minecraft.world.item.crafting.Recipe.CommonInfonet.minecraft.core.component.DataComponentPatchprotected net.minecraft.world.item.crafting.PlacementInfonet.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, showNotificationMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.Recipe
display, isSpecialMethods inherited from interface net.minecraft.world.item.crafting.SmithingRecipe
getType, matches, recipeBookCategory
-
Field Details
-
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:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.SmithingRecipeInput>- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.SmithingRecipe- Specified by:
getSerializerin classnet.minecraft.world.item.crafting.SimpleSmithingRecipe
-
templateIngredient
-
baseIngredient
public net.minecraft.world.item.crafting.Ingredient baseIngredient() -
additionIngredient
-
createPlacementInfo
protected net.minecraft.world.item.crafting.PlacementInfo createPlacementInfo()- Specified by:
createPlacementInfoin classnet.minecraft.world.item.crafting.SimpleSmithingRecipe
-