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[] p_i1917_3_,
ItemStack output) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
getCraftingResult(InventoryCrafting inv) |
ItemStack |
getRecipeOutput() |
int |
getRecipeSize() |
ItemStack[] |
getRemainingItems(InventoryCrafting inv) |
boolean |
matches(InventoryCrafting inv,
World worldIn) |
public final int recipeWidth
public final int recipeHeight
public final ItemStack[] recipeItems
@Nullable public ItemStack getRecipeOutput()
getRecipeOutput
in interface IRecipe
public ItemStack[] getRemainingItems(InventoryCrafting inv)
getRemainingItems
in interface IRecipe
public boolean matches(InventoryCrafting inv, World worldIn)
@Nullable public ItemStack getCraftingResult(InventoryCrafting inv)
getCraftingResult
in interface IRecipe
public int getRecipeSize()
getRecipeSize
in interface IRecipe