public class ShapedRecipes extends java.lang.Object implements IRecipe
| Modifier and Type | Field and Description |
|---|---|
int |
recipeHeight |
ItemStack[] |
recipeItems |
int |
recipeWidth |
| Constructor and Description |
|---|
ShapedRecipes(int width,
int height,
ItemStack[] ingredientsIn,
ItemStack output) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
getCraftingResult(InventoryCrafting inv) |
ItemStack |
getRecipeOutput() |
int |
getRecipeSize() |
NonNullList<ItemStack> |
getRemainingItems(InventoryCrafting inv) |
boolean |
matches(InventoryCrafting inv,
World worldIn) |
public final int recipeWidth
public final int recipeHeight
public final ItemStack[] recipeItems
public ItemStack getRecipeOutput()
getRecipeOutput in interface IRecipepublic NonNullList<ItemStack> getRemainingItems(InventoryCrafting inv)
getRemainingItems in interface IRecipepublic boolean matches(InventoryCrafting inv, World worldIn)
public ItemStack getCraftingResult(InventoryCrafting inv)
getCraftingResult in interface IRecipepublic int getRecipeSize()
getRecipeSize in interface IRecipe