public static class Definitions.Recipe
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Definitions.Recipe.Ingredient
A class representing an ingredient (for a crafting recipe).
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String[] |
getAllCategories()
Gets all crafting categories.
|
java.lang.String |
getCategory()
Gets the recipe category (e.g.
|
int |
getID()
Gets the recipe ID.
|
Definitions.Recipe.Ingredient |
getIngredient(int index)
Gets a specific ingredient.
|
int |
getIngredientCount()
Gets the number of required ingredients.
|
Definitions.Recipe.Ingredient[] |
getIngredients()
Gets all required ingredients for this recipe.
|
Definitions.ItemDefinition |
getTargetItemDefinition()
Gets the target item definition.
|
short |
getTargetItemID()
Gets the target item ID.
|
java.lang.String |
getTargetItemName()
Gets the target item name (always lowercase), e.g.
|
public int getID()
public short getTargetItemID()
getTargetItemName(),
getTargetItemDefinition()public java.lang.String getTargetItemName()
getTargetItemID(),
getTargetItemDefinition()public Definitions.ItemDefinition getTargetItemDefinition()
getTargetItemID(),
getTargetItemName()public Definitions.Recipe.Ingredient[] getIngredients()
public Definitions.Recipe.Ingredient getIngredient(int index)
getIngredientCount(). If the index does not exist, this method
returns null.index - the ingredient index (0 for the first ingredient, 1 for the
second ingredient etc).public int getIngredientCount()
public java.lang.String getCategory()
public static java.lang.String[] getAllCategories()