Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Gets the height of the grid this ShapedRecipe fits into.
|
Optional<ItemStack> |
getIngredient(int x,
int y)
Gets the ingredient required in the given coordinates.
|
Optional<ItemStack> |
getIngredient(com.flowpowered.math.vector.Vector2i pos)
Gets the ingredient required in the given position.
|
int |
getWidth()
Gets the width of the grid this ShapedRecipe fits into.
|
getResults, getResultTypes, isValid
int getWidth()
int getHeight()
Optional<ItemStack> getIngredient(int x, int y)
x
- The x coordinatey
- The y coordinate