Modifier and Type | Field and Description |
---|---|
protected int |
height |
protected java.lang.Object[] |
input |
static int |
MAX_CRAFT_GRID_HEIGHT |
static int |
MAX_CRAFT_GRID_WIDTH |
protected boolean |
mirrored |
protected ItemStack |
output |
protected int |
width |
Constructor and Description |
---|
ShapedOreRecipe(Block result,
java.lang.Object... recipe) |
ShapedOreRecipe(Item result,
java.lang.Object... recipe) |
ShapedOreRecipe(ItemStack result,
java.lang.Object... recipe) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkMatch(InventoryCrafting inv,
int startX,
int startY,
boolean mirror) |
ItemStack |
getCraftingResult(InventoryCrafting var1) |
java.lang.Object[] |
getInput()
Returns the input for this recipe, any mod accessing this value should never
manipulate the values in this array as it will effect the recipe itself.
|
ItemStack |
getRecipeOutput() |
int |
getRecipeSize() |
ItemStack[] |
getRemainingItems(InventoryCrafting inv) |
boolean |
matches(InventoryCrafting inv,
World world) |
ShapedOreRecipe |
setMirrored(boolean mirror) |
public static final int MAX_CRAFT_GRID_WIDTH
public static final int MAX_CRAFT_GRID_HEIGHT
protected ItemStack output
protected java.lang.Object[] input
protected int width
protected int height
protected boolean mirrored
public ShapedOreRecipe(Block result, java.lang.Object... recipe)
public ShapedOreRecipe(Item result, java.lang.Object... recipe)
public ShapedOreRecipe(ItemStack result, java.lang.Object... recipe)
public ItemStack getCraftingResult(InventoryCrafting var1)
getCraftingResult
in interface IRecipe
public int getRecipeSize()
getRecipeSize
in interface IRecipe
public ItemStack getRecipeOutput()
getRecipeOutput
in interface IRecipe
public boolean matches(InventoryCrafting inv, World world)
protected boolean checkMatch(InventoryCrafting inv, int startX, int startY, boolean mirror)
public ShapedOreRecipe setMirrored(boolean mirror)
public java.lang.Object[] getInput()
public ItemStack[] getRemainingItems(InventoryCrafting inv)
getRemainingItems
in interface IRecipe