public abstract class AbstractCookingRecipe extends java.lang.Object implements IRecipe<IInventory>
| 修飾子とタイプ | フィールドと説明 | 
|---|---|
| protected int | cookTime | 
| protected float | experience | 
| protected java.lang.String | group | 
| protected ResourceLocation | id | 
| protected Ingredient | ingredient | 
| protected ItemStack | result | 
| protected IRecipeType<?> | type | 
| コンストラクタと説明 | 
|---|
| AbstractCookingRecipe(IRecipeType<?> typeIn,
                     ResourceLocation idIn,
                     java.lang.String groupIn,
                     Ingredient ingredientIn,
                     ItemStack resultIn,
                     float experienceIn,
                     int cookTimeIn) | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| boolean | canFit(int width,
      int height)Used to determine if this recipe can fit in a grid of the given width/height | 
| int | getCookTime()Gets the cook time in ticks | 
| ItemStack | getCraftingResult(IInventory inv)Returns an Item that is the result of this recipe | 
| float | getExperience()Gets the experience of this recipe | 
| java.lang.String | getGroup()Recipes with equal group are combined into one button in the recipe book | 
| ResourceLocation | getId() | 
| NonNullList<Ingredient> | getIngredients() | 
| ItemStack | getRecipeOutput()Get the result of this recipe, usually for display purposes (e.g. recipe book). | 
| IRecipeType<?> | getType() | 
| boolean | matches(IInventory inv,
       World worldIn)Used to check if a recipe matches current crafting inventory | 
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 インタフェース内 IRecipe<IInventory>public ItemStack getCraftingResult(IInventory inv)
getCraftingResult インタフェース内 IRecipe<IInventory>public boolean canFit(int width,
                      int height)
canFit インタフェース内 IRecipe<IInventory>public NonNullList<Ingredient> getIngredients()
getIngredients インタフェース内 IRecipe<IInventory>public float getExperience()
public ItemStack getRecipeOutput()
getRecipeOutput インタフェース内 IRecipe<IInventory>public java.lang.String getGroup()
getGroup インタフェース内 IRecipe<IInventory>public int getCookTime()
public ResourceLocation getId()
getId インタフェース内 IRecipe<IInventory>public IRecipeType<?> getType()
getType インタフェース内 IRecipe<IInventory>