Class SmithingTransformRecipe
java.lang.Object
net.minecraft.world.item.crafting.SmithingTransformRecipe
- All Implemented Interfaces:
Recipe<SmithingRecipeInput>
,SmithingRecipe
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Ingredient
(package private) final Ingredient
(package private) final ItemStack
(package private) final Ingredient
Fields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, STREAM_CODEC
-
Constructor Summary
ConstructorsConstructorDescriptionSmithingTransformRecipe
(Ingredient pTemplate, Ingredient pBase, Ingredient pAddition, ItemStack pResult) -
Method Summary
Modifier and TypeMethodDescriptionassemble
(SmithingRecipeInput pInput, HolderLookup.Provider pRegistries) getResultItem
(HolderLookup.Provider pRegistries) boolean
isAdditionIngredient
(ItemStack pStack) boolean
isBaseIngredient
(ItemStack pStack) boolean
boolean
isTemplateIngredient
(ItemStack pStack) boolean
matches
(SmithingRecipeInput pInput, Level pLevel) 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.Recipe
getGroup, getIngredients, getRemainingItems, isSpecial, showNotification
Methods inherited from interface net.minecraft.world.item.crafting.SmithingRecipe
canCraftInDimensions, getToastSymbol, getType
-
Field Details
-
template
-
base
-
addition
-
result
-
-
Constructor Details
-
SmithingTransformRecipe
public SmithingTransformRecipe(Ingredient pTemplate, Ingredient pBase, Ingredient pAddition, ItemStack pResult)
-
-
Method Details
-
matches
- Specified by:
matches
in interfaceRecipe<SmithingRecipeInput>
-
assemble
- Specified by:
assemble
in interfaceRecipe<SmithingRecipeInput>
-
getResultItem
- Specified by:
getResultItem
in interfaceRecipe<SmithingRecipeInput>
-
isTemplateIngredient
- Specified by:
isTemplateIngredient
in interfaceSmithingRecipe
-
isBaseIngredient
- Specified by:
isBaseIngredient
in interfaceSmithingRecipe
-
isAdditionIngredient
- Specified by:
isAdditionIngredient
in interfaceSmithingRecipe
-
getSerializer
- Specified by:
getSerializer
in interfaceRecipe<SmithingRecipeInput>
-
isIncomplete
public boolean isIncomplete()- Specified by:
isIncomplete
in interfaceRecipe<SmithingRecipeInput>
-