public class ShapedRecipes extends Object implements IRecipe
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ShapedRecipes(int par1,
int par2,
ItemStack[] par3ArrayOfItemStack,
ItemStack par4ItemStack) |
Modifier and Type | Method and Description |
---|---|
ShapedRecipes |
func_92100_c() |
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
|
public final int recipeWidth
public final int recipeHeight
public final ItemStack[] recipeItems
public final int recipeOutputItemID
public ItemStack getRecipeOutput()
getRecipeOutput
in interface IRecipe
public boolean matches(InventoryCrafting par1InventoryCrafting, World par2World)
public ItemStack getCraftingResult(InventoryCrafting par1InventoryCrafting)
getCraftingResult
in interface IRecipe
public int getRecipeSize()
getRecipeSize
in interface IRecipe
public ShapedRecipes func_92100_c()