Package net.minecraft.item.crafting
Class SmithingRecipe
java.lang.Object
net.minecraft.item.crafting.SmithingRecipe
- All Implemented Interfaces:
IRecipe<IInventory>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Ingredient
private final Ingredient
private final ResourceLocation
private final ItemStack
-
Constructor Summary
ConstructorDescriptionSmithingRecipe
(ResourceLocation p_i231600_1_, Ingredient p_i231600_2_, Ingredient p_i231600_3_, ItemStack p_i231600_4_) -
Method Summary
Modifier and TypeMethodDescriptionassemble
(IInventory p_77572_1_) boolean
canCraftInDimensions
(int p_194133_1_, int p_194133_2_) getId()
IRecipeType<?>
getType()
boolean
isAdditionIngredient
(ItemStack p_241456_1_) boolean
matches
(IInventory p_77569_1_, World p_77569_2_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.item.crafting.IRecipe
getGroup, getIngredients, getRemainingItems, isSpecial
-
Field Details
-
base
-
addition
-
result
-
id
-
-
Constructor Details
-
SmithingRecipe
public SmithingRecipe(ResourceLocation p_i231600_1_, Ingredient p_i231600_2_, Ingredient p_i231600_3_, ItemStack p_i231600_4_)
-
-
Method Details
-
matches
- Specified by:
matches
in interfaceIRecipe<IInventory>
-
assemble
- Specified by:
assemble
in interfaceIRecipe<IInventory>
-
canCraftInDimensions
public boolean canCraftInDimensions(int p_194133_1_, int p_194133_2_) - Specified by:
canCraftInDimensions
in interfaceIRecipe<IInventory>
-
getResultItem
- Specified by:
getResultItem
in interfaceIRecipe<IInventory>
-
isAdditionIngredient
-
getToastSymbol
- Specified by:
getToastSymbol
in interfaceIRecipe<IInventory>
-
getId
- Specified by:
getId
in interfaceIRecipe<IInventory>
-
getSerializer
- Specified by:
getSerializer
in interfaceIRecipe<IInventory>
-
getType
- Specified by:
getType
in interfaceIRecipe<IInventory>
-