| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.minecraft.item.crafting.ShapedRecipes
public class ShapedRecipes
| Field Summary | |
|---|---|
 int | 
recipeHeight
How many vertical slots this recipe uses.  | 
 ItemStack[] | 
recipeItems
Is a array of ItemStack that composes the recipe.  | 
 int | 
recipeOutputItemID
Is the itemID of the output item that you get when craft the recipe.  | 
 int | 
recipeWidth
How many horizontal slots this recipe is wide.  | 
| Constructor Summary | |
|---|---|
ShapedRecipes(int par1,
                           int par2,
                           ItemStack[] par3ArrayOfItemStack,
                           ItemStack par4ItemStack)
 | 
|
| Method Summary | |
|---|---|
 ItemStack | 
getCraftingResult(InventoryCrafting par1InventoryCrafting)
Returns an Item that is the result of this recipe  | 
 ItemStack | 
getRecipeOutput()
 | 
 int | 
getRecipeSize()
Returns the size of the recipe area  | 
 boolean | 
matches(InventoryCrafting par1InventoryCrafting,
               World par2World)
Used to check if a recipe matches current crafting inventory  | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public final int recipeWidth
public final int recipeHeight
public final ItemStack[] recipeItems
public final int recipeOutputItemID
| Constructor Detail | 
|---|
public ShapedRecipes(int par1,
                     int par2,
                     ItemStack[] par3ArrayOfItemStack,
                     ItemStack par4ItemStack)
| Method Detail | 
|---|
public ItemStack getRecipeOutput()
getRecipeOutput in interface IRecipe
public boolean matches(InventoryCrafting par1InventoryCrafting,
                       World par2World)
matches in interface IRecipepublic ItemStack getCraftingResult(InventoryCrafting par1InventoryCrafting)
getCraftingResult in interface IRecipepublic int getRecipeSize()
getRecipeSize in interface IRecipe
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||