|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.inventory.ShapelessRecipe
public class ShapelessRecipe
Represents a shapeless recipe, where the arrangement of the ingredients on the crafting grid does not matter.
| Constructor Summary | |
|---|---|
ShapelessRecipe(ItemStack result)
Create a shapeless recipe to craft the specified ItemStack. |
|
| Method Summary | |
|---|---|
ShapelessRecipe |
addIngredient(int count,
Material ingredient)
Adds multiples of the specified ingredient. |
ShapelessRecipe |
addIngredient(int count,
MaterialData ingredient)
Adds multiples of the specified ingredient. |
ShapelessRecipe |
addIngredient(int count,
Material ingredient,
int rawdata)
Adds multiples of the specified ingredient. |
ShapelessRecipe |
addIngredient(Material ingredient)
Adds the specified ingredient. |
ShapelessRecipe |
addIngredient(MaterialData ingredient)
Adds the specified ingredient. |
ShapelessRecipe |
addIngredient(Material ingredient,
int rawdata)
Adds the specified ingredient. |
List<ItemStack> |
getIngredientList()
Get the list of ingredients used for this recipe. |
ItemStack |
getResult()
Get the result of this recipe. |
ShapelessRecipe |
removeIngredient(int count,
Material ingredient)
Removes multiple instances of an ingredient from the list. |
ShapelessRecipe |
removeIngredient(int count,
MaterialData ingredient)
Removes multiple instances of an ingredient from the list. |
ShapelessRecipe |
removeIngredient(int count,
Material ingredient,
int rawdata)
Removes multiple instances of an ingredient from the list. |
ShapelessRecipe |
removeIngredient(Material ingredient)
Removes an ingredient from the list. |
ShapelessRecipe |
removeIngredient(MaterialData ingredient)
Removes an ingredient from the list. |
ShapelessRecipe |
removeIngredient(Material ingredient,
int rawdata)
Removes an ingredient from the list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShapelessRecipe(ItemStack result)
result - The item you want the recipe to create.addIngredient(Material),
addIngredient(MaterialData),
addIngredient(Material,int),
addIngredient(int,Material),
addIngredient(int,MaterialData),
addIngredient(int,Material,int)| Method Detail |
|---|
public ShapelessRecipe addIngredient(MaterialData ingredient)
ingredient - The ingredient to add.
public ShapelessRecipe addIngredient(Material ingredient)
ingredient - The ingredient to add.
public ShapelessRecipe addIngredient(Material ingredient,
int rawdata)
ingredient - The ingredient to add.rawdata - The data value, or -1 to allow any data value.
public ShapelessRecipe addIngredient(int count,
MaterialData ingredient)
count - How many to add (can't be more than 9!)ingredient - The ingredient to add.
public ShapelessRecipe addIngredient(int count,
Material ingredient)
count - How many to add (can't be more than 9!)ingredient - The ingredient to add.
public ShapelessRecipe addIngredient(int count,
Material ingredient,
int rawdata)
count - How many to add (can't be more than 9!)ingredient - The ingredient to add.rawdata - The data value, or -1 to allow any data value.
public ShapelessRecipe removeIngredient(Material ingredient)
ingredient - The ingredient to remove
public ShapelessRecipe removeIngredient(MaterialData ingredient)
ingredient - The ingredient to remove
public ShapelessRecipe removeIngredient(int count,
Material ingredient)
count - The number of copies to remove.ingredient - The ingredient to remove
public ShapelessRecipe removeIngredient(int count,
MaterialData ingredient)
count - The number of copies to remove.ingredient - The ingredient to remove.
public ShapelessRecipe removeIngredient(Material ingredient,
int rawdata)
ingredient - The ingredient to removerawdata - The data value;
public ShapelessRecipe removeIngredient(int count,
Material ingredient,
int rawdata)
count - The number of copies to remove.ingredient - The ingredient to remove.rawdata - The data value.
public ItemStack getResult()
getResult in interface Recipepublic List<ItemStack> getIngredientList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||