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 class
SmithingRecipe.Serializer
-
Field Summary
Fields Modifier and Type Field Description private Ingredient
addition
private Ingredient
base
private ResourceLocation
id
private ItemStack
result
-
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 ItemStack
assemble(IInventory p_77572_1_)
boolean
canCraftInDimensions(int p_194133_1_, int p_194133_2_)
ResourceLocation
getId()
ItemStack
getResultItem()
IRecipeSerializer<?>
getSerializer()
ItemStack
getToastSymbol()
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 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:
matches
in interfaceIRecipe<IInventory>
-
assemble
public ItemStack assemble(IInventory p_77572_1_)
- 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
public ItemStack getResultItem()
- Specified by:
getResultItem
in interfaceIRecipe<IInventory>
-
isAdditionIngredient
public boolean isAdditionIngredient(ItemStack p_241456_1_)
-
getToastSymbol
public ItemStack getToastSymbol()
- Specified by:
getToastSymbol
in interfaceIRecipe<IInventory>
-
getId
public ResourceLocation getId()
- Specified by:
getId
in interfaceIRecipe<IInventory>
-
getSerializer
public IRecipeSerializer<?> getSerializer()
- Specified by:
getSerializer
in interfaceIRecipe<IInventory>
-
getType
public IRecipeType<?> getType()
- Specified by:
getType
in interfaceIRecipe<IInventory>
-
-