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) |
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() |
NonNullList<ItemStack> |
getRemainingItems(InventoryCrafting inv) |
int |
getWidth() |
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
@Nonnull 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(@Nonnull ItemStack result, java.lang.Object... recipe)
@Nonnull public ItemStack getCraftingResult(@Nonnull InventoryCrafting var1)
getCraftingResult
in interface IRecipe
public int getRecipeSize()
getRecipeSize
in interface IRecipe
@Nonnull 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 NonNullList<ItemStack> getRemainingItems(InventoryCrafting inv)
getRemainingItems
in interface IRecipe
public int getWidth()
public int getHeight()