public class ShapedRecipes extends java.lang.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 |
recipeWidth
How many horizontal slots this recipe is wide.
|
Constructor and Description |
---|
ShapedRecipes(int width,
int height,
ItemStack[] p_i1917_3_,
ItemStack output) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
getCraftingResult(InventoryCrafting inv)
Returns an Item that is the result of this recipe
|
ItemStack |
getRecipeOutput() |
int |
getRecipeSize()
Returns the size of the recipe area
|
ItemStack[] |
getRemainingItems(InventoryCrafting inv) |
boolean |
matches(InventoryCrafting inv,
World worldIn)
Used to check if a recipe matches current crafting inventory
|
public final int recipeWidth
public final int recipeHeight
public final ItemStack[] recipeItems
public ItemStack getRecipeOutput()
getRecipeOutput
in interface IRecipe
public ItemStack[] getRemainingItems(InventoryCrafting inv)
getRemainingItems
in interface IRecipe
public boolean matches(InventoryCrafting inv, World worldIn)
public ItemStack getCraftingResult(InventoryCrafting inv)
getCraftingResult
in interface IRecipe
public int getRecipeSize()
getRecipeSize
in interface IRecipe