public abstract class AbstractCookingRecipe extends java.lang.Object implements IRecipe<IInventory>
| Modifier and Type | Field and Description |
|---|---|
protected int |
cookTime |
protected float |
experience |
protected java.lang.String |
group |
protected ResourceLocation |
id |
protected Ingredient |
ingredient |
protected ItemStack |
result |
protected IRecipeType<?> |
type |
| Constructor and Description |
|---|
AbstractCookingRecipe(IRecipeType<?> typeIn,
ResourceLocation idIn,
java.lang.String groupIn,
Ingredient ingredientIn,
ItemStack resultIn,
float experienceIn,
int cookTimeIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canFit(int width,
int height) |
int |
getCookTime() |
ItemStack |
getCraftingResult(IInventory inv) |
float |
getExperience() |
java.lang.String |
getGroup() |
ResourceLocation |
getId() |
NonNullList<Ingredient> |
getIngredients() |
ItemStack |
getRecipeOutput() |
IRecipeType<?> |
getType() |
boolean |
matches(IInventory inv,
World worldIn) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIcon, getRemainingItems, getSerializer, isDynamicprotected final IRecipeType<?> type
protected final ResourceLocation id
protected final java.lang.String group
protected final Ingredient ingredient
protected final ItemStack result
protected final float experience
protected final int cookTime
public AbstractCookingRecipe(IRecipeType<?> typeIn, ResourceLocation idIn, java.lang.String groupIn, Ingredient ingredientIn, ItemStack resultIn, float experienceIn, int cookTimeIn)
public boolean matches(IInventory inv, World worldIn)
matches in interface IRecipe<IInventory>public ItemStack getCraftingResult(IInventory inv)
getCraftingResult in interface IRecipe<IInventory>public boolean canFit(int width,
int height)
canFit in interface IRecipe<IInventory>public NonNullList<Ingredient> getIngredients()
getIngredients in interface IRecipe<IInventory>public float getExperience()
public ItemStack getRecipeOutput()
getRecipeOutput in interface IRecipe<IInventory>public java.lang.String getGroup()
getGroup in interface IRecipe<IInventory>public int getCookTime()
public ResourceLocation getId()
getId in interface IRecipe<IInventory>public IRecipeType<?> getType()
getType in interface IRecipe<IInventory>