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
public abstract class AbstractCookingRecipe extends java.lang.Object implements IRecipe<IInventory>
-
-
Field Summary
Fields Modifier and Type Field Description protected intcookingTimeprotected floatexperienceprotected java.lang.Stringgroupprotected ResourceLocationidprotected Ingredientingredientprotected ItemStackresultprotected IRecipeType<?>type
-
Constructor Summary
Constructors Constructor Description AbstractCookingRecipe(IRecipeType<?> p_i50032_1_, ResourceLocation p_i50032_2_, java.lang.String p_i50032_3_, Ingredient p_i50032_4_, ItemStack p_i50032_5_, float p_i50032_6_, int p_i50032_7_)
-
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_)intgetCookingTime()floatgetExperience()java.lang.StringgetGroup()ResourceLocationgetId()NonNullList<Ingredient>getIngredients()ItemStackgetResultItem()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, wait
-
Methods inherited from interface net.minecraft.item.crafting.IRecipe
getRemainingItems, getSerializer, getToastSymbol, isSpecial
-
-
-
-
Field Detail
-
type
protected final IRecipeType<?> type
-
id
protected final ResourceLocation id
-
group
protected final java.lang.String group
-
ingredient
protected final Ingredient ingredient
-
result
protected final ItemStack result
-
experience
protected final float experience
-
cookingTime
protected final int cookingTime
-
-
Constructor Detail
-
AbstractCookingRecipe
public AbstractCookingRecipe(IRecipeType<?> p_i50032_1_, ResourceLocation p_i50032_2_, java.lang.String p_i50032_3_, Ingredient p_i50032_4_, ItemStack p_i50032_5_, float p_i50032_6_, int p_i50032_7_)
-
-
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>
-
getIngredients
public NonNullList<Ingredient> getIngredients()
- Specified by:
getIngredientsin interfaceIRecipe<IInventory>
-
getExperience
public float getExperience()
-
getResultItem
public ItemStack getResultItem()
- Specified by:
getResultItemin interfaceIRecipe<IInventory>
-
getGroup
public java.lang.String getGroup()
- Specified by:
getGroupin interfaceIRecipe<IInventory>
-
getCookingTime
public int getCookingTime()
-
getId
public ResourceLocation getId()
- Specified by:
getIdin interfaceIRecipe<IInventory>
-
getType
public IRecipeType<?> getType()
- Specified by:
getTypein interfaceIRecipe<IInventory>
-
-