Package net.minecraft.item.crafting
Class SmithingRecipe
- java.lang.Object
-
- net.minecraft.item.crafting.SmithingRecipe
-
- All Implemented Interfaces:
IRecipe<IInventory>
public class SmithingRecipe extends java.lang.Object implements IRecipe<IInventory>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSmithingRecipe.Serializer
-
Field Summary
Fields Modifier and Type Field Description private Ingredientadditionprivate Ingredientbaseprivate ResourceLocationidprivate ItemStackresult
-
Constructor Summary
Constructors Constructor Description SmithingRecipe(ResourceLocation p_i231600_1_, Ingredient p_i231600_2_, Ingredient p_i231600_3_, ItemStack p_i231600_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemStackassemble(IInventory p_77572_1_)booleancanCraftInDimensions(int p_194133_1_, int p_194133_2_)ResourceLocationgetId()ItemStackgetResultItem()IRecipeSerializer<?>getSerializer()ItemStackgetToastSymbol()IRecipeType<?>getType()booleanisAdditionIngredient(ItemStack p_241456_1_)booleanmatches(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 Detail
-
base
private final Ingredient base
-
addition
private final Ingredient addition
-
result
private final ItemStack result
-
id
private final ResourceLocation id
-
-
Constructor Detail
-
SmithingRecipe
public SmithingRecipe(ResourceLocation p_i231600_1_, Ingredient p_i231600_2_, Ingredient p_i231600_3_, ItemStack p_i231600_4_)
-
-
Method Detail
-
matches
public boolean matches(IInventory p_77569_1_, World p_77569_2_)
- Specified by:
matchesin interfaceIRecipe<IInventory>
-
assemble
public ItemStack assemble(IInventory p_77572_1_)
- Specified by:
assemblein interfaceIRecipe<IInventory>
-
canCraftInDimensions
public boolean canCraftInDimensions(int p_194133_1_, int p_194133_2_)- Specified by:
canCraftInDimensionsin interfaceIRecipe<IInventory>
-
getResultItem
public ItemStack getResultItem()
- Specified by:
getResultItemin interfaceIRecipe<IInventory>
-
isAdditionIngredient
public boolean isAdditionIngredient(ItemStack p_241456_1_)
-
getToastSymbol
public ItemStack getToastSymbol()
- Specified by:
getToastSymbolin interfaceIRecipe<IInventory>
-
getId
public ResourceLocation getId()
- Specified by:
getIdin interfaceIRecipe<IInventory>
-
getSerializer
public IRecipeSerializer<?> getSerializer()
- Specified by:
getSerializerin interfaceIRecipe<IInventory>
-
getType
public IRecipeType<?> getType()
- Specified by:
getTypein interfaceIRecipe<IInventory>
-
-