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
FieldsModifier and TypeFieldDescriptionprotected final intprotected final floatprotected final Stringprotected final ResourceLocationprotected final Ingredientprotected final ItemStackprotected final IRecipeType<?> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCookingRecipe(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_) booleancanCraftInDimensions(int p_194133_1_, int p_194133_2_) intfloatgetGroup()getId()IRecipeType<?>getType()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, waitMethods 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:
matchesin interfaceIRecipe<IInventory>
-
assemble
- Specified by:
assemblein interfaceIRecipe<IInventory>
-
canCraftInDimensions
public boolean canCraftInDimensions(int p_194133_1_, int p_194133_2_) - Specified by:
canCraftInDimensionsin interfaceIRecipe<IInventory>
-
getIngredients
- Specified by:
getIngredientsin interfaceIRecipe<IInventory>
-
getExperience
public float getExperience() -
getResultItem
- Specified by:
getResultItemin interfaceIRecipe<IInventory>
-
getGroup
- Specified by:
getGroupin interfaceIRecipe<IInventory>
-
getCookingTime
public int getCookingTime() -
getId
- Specified by:
getIdin interfaceIRecipe<IInventory>
-
getType
- Specified by:
getTypein interfaceIRecipe<IInventory>
-