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 int
cookingTime
protected float
experience
protected java.lang.String
group
protected ResourceLocation
id
protected Ingredient
ingredient
protected ItemStack
result
protected 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 ItemStack
assemble(IInventory p_77572_1_)
boolean
canCraftInDimensions(int p_194133_1_, int p_194133_2_)
int
getCookingTime()
float
getExperience()
java.lang.String
getGroup()
ResourceLocation
getId()
NonNullList<Ingredient>
getIngredients()
ItemStack
getResultItem()
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 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:
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>
-
getIngredients
public NonNullList<Ingredient> getIngredients()
- Specified by:
getIngredients
in interfaceIRecipe<IInventory>
-
getExperience
public float getExperience()
-
getResultItem
public ItemStack getResultItem()
- Specified by:
getResultItem
in interfaceIRecipe<IInventory>
-
getGroup
public java.lang.String getGroup()
- Specified by:
getGroup
in interfaceIRecipe<IInventory>
-
getCookingTime
public int getCookingTime()
-
getId
public ResourceLocation getId()
- Specified by:
getId
in interfaceIRecipe<IInventory>
-
getType
public IRecipeType<?> getType()
- Specified by:
getType
in interfaceIRecipe<IInventory>
-
-