public interface ShapedCraftingRecipe extends CraftingRecipe
Modifier and Type | Interface and Description |
---|---|
static interface |
ShapedCraftingRecipe.Builder
The builder which you create
ShapedCraftingRecipe s through. |
Modifier and Type | Method and Description |
---|---|
static ShapedCraftingRecipe.Builder |
builder()
Creates a new
ShapedCraftingRecipe.Builder to build a ShapedCraftingRecipe . |
int |
getHeight()
Gets the height of the grid this ShapedCraftingRecipe fits into.
|
Ingredient |
getIngredient(int x,
int y)
Returns the ingredient predicate at the specified location in this
recipe.
|
int |
getWidth()
Gets the width of the grid this ShapedCraftingRecipe fits into.
|
getGroup, getRemainingItems, getResult, getResult, isValid, shapedBuilder, shapelessBuilder
getExemplaryResult
getId, getName
static ShapedCraftingRecipe.Builder builder()
ShapedCraftingRecipe.Builder
to build a ShapedCraftingRecipe
.Ingredient getIngredient(int x, int y)
x
- The x coordinate counted from the left sidey
- The y coordinate counted from the topIndexOutOfBoundsException
- if the location is invalidint getWidth()
int getHeight()