| 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)
Returns an Item that is the result of this recipe
|
int |
getHeight() |
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()
Returns the size of the recipe area
|
NonNullList<ItemStack> |
getRemainingItems(InventoryCrafting inv) |
int |
getWidth() |
boolean |
matches(InventoryCrafting inv,
World world)
Used to check if a recipe matches current crafting inventory
|
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 IRecipepublic int getRecipeSize()
getRecipeSize in interface IRecipepublic ItemStack getRecipeOutput()
getRecipeOutput in interface IRecipepublic 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 NonNullList<ItemStack> getRemainingItems(InventoryCrafting inv)
getRemainingItems in interface IRecipepublic int getWidth()
public int getHeight()