Package net.minecraft.item.crafting
Class AbstractCookingRecipe
java.lang.Object
net.minecraft.item.crafting.AbstractCookingRecipe
- All Implemented Interfaces:
IRecipe<IInventory>
- Direct Known Subclasses:
BlastingRecipe
,CampfireCookingRecipe
,FurnaceRecipe
,SmokingRecipe
-
Field Summary
Modifier and TypeFieldDescriptionprotected final int
protected final float
protected final String
protected final ResourceLocation
protected final Ingredient
protected final ItemStack
protected final IRecipeType<?>
-
Constructor Summary
ConstructorDescriptionAbstractCookingRecipe
(IRecipeType<?> p_i50032_1_, ResourceLocation p_i50032_2_, String p_i50032_3_, Ingredient p_i50032_4_, ItemStack p_i50032_5_, float p_i50032_6_, int p_i50032_7_) -
Method Summary
Modifier and TypeMethodDescriptionassemble
(IInventory p_77572_1_) boolean
canCraftInDimensions
(int p_194133_1_, int p_194133_2_) int
float
getGroup()
getId()
IRecipeType<?>
getType()
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
getRemainingItems, getSerializer, getToastSymbol, isSpecial
-
Field Details
-
type
-
id
-
group
-
ingredient
-
result
-
experience
protected final float experience -
cookingTime
protected final int cookingTime
-
-
Constructor Details
-
AbstractCookingRecipe
public AbstractCookingRecipe(IRecipeType<?> p_i50032_1_, ResourceLocation p_i50032_2_, String p_i50032_3_, Ingredient p_i50032_4_, ItemStack p_i50032_5_, float p_i50032_6_, int p_i50032_7_)
-
-
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>
-
getIngredients
- Specified by:
getIngredients
in interfaceIRecipe<IInventory>
-
getExperience
public float getExperience() -
getResultItem
- Specified by:
getResultItem
in interfaceIRecipe<IInventory>
-
getGroup
- Specified by:
getGroup
in interfaceIRecipe<IInventory>
-
getCookingTime
public int getCookingTime() -
getId
- Specified by:
getId
in interfaceIRecipe<IInventory>
-
getType
- Specified by:
getType
in interfaceIRecipe<IInventory>
-