Class Ingredient
java.lang.Object
valorless.valorlessutils.crafting.Ingredient
Represents an ingredient used in crafting recipes.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionIngredient(String letter, org.bukkit.inventory.ItemStack item) Constructs an Ingredient object with an identification letter and an ItemStack.
 The ingredient's material will also be set to the material of 'item'.Ingredient(String letter, org.bukkit.Material material) Constructs an Ingredient object with an identification letter and a Material.
- 
Method Summary
- 
Field Details- 
letterpublic char letterThe identification letter of the ingredient.
- 
itempublic org.bukkit.inventory.ItemStack itemThe ItemStack representing the ingredient.
- 
materialpublic org.bukkit.Material materialThe Material of the ingredient.
- 
amountpublic int amountAmount needed when using Shapeless recipes
 
- 
- 
Constructor Details- 
IngredientConstructs an Ingredient object with an identification letter and an ItemStack.
 The ingredient's material will also be set to the material of 'item'.- Parameters:
- letter- The identification letter.
- item- The ItemStack representing the ingredient.
 
- 
IngredientConstructs an Ingredient object with an identification letter and a Material.- Parameters:
- letter- The identification letter.
- material- The Material of the ingredient.
 
 
- 
- 
Method Details- 
SetAmountpublic void SetAmount(int amount) Set the amount of the Ingredient required, for Shapeless recipes.- Parameters:
- amount- The amount of the ingredient. (1 - 64)
 
- 
toStringReturns a string representation of the Ingredient object.
 
-