Constructor | Description |
---|---|
ShapelessRecipe(ItemStack result) |
Deprecated.
|
ShapelessRecipe(NamespacedKey key,
ItemStack result) |
Create a shapeless recipe to craft the specified ItemStack.
|
Modifier and Type | Method | Description |
---|---|---|
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) |
Deprecated.
Magic value
|
ShapelessRecipe |
addIngredient(Material ingredient) |
Adds the specified ingredient.
|
ShapelessRecipe |
addIngredient(MaterialData ingredient) |
Adds the specified ingredient.
|
ShapelessRecipe |
addIngredient(Material ingredient,
int rawdata) |
Deprecated.
Magic value
|
java.lang.String |
getGroup() |
Get the group of this recipe.
|
java.util.List<ItemStack> |
getIngredientList() |
Get the list of ingredients used for this recipe.
|
NamespacedKey |
getKey() |
Return the namespaced identifier for this object.
|
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) |
Deprecated.
Magic value
|
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) |
Deprecated.
Magic value
|
void |
setGroup(java.lang.String group) |
Set the group of this recipe.
|
@Deprecated public ShapelessRecipe(ItemStack result)
public ShapelessRecipe(NamespacedKey key, ItemStack result)
key
- the unique recipe keyresult
- 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)
public ShapelessRecipe addIngredient(MaterialData ingredient)
ingredient
- The ingredient to add.public ShapelessRecipe addIngredient(Material ingredient)
ingredient
- The ingredient to add.@Deprecated 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.@Deprecated 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 removepublic ShapelessRecipe removeIngredient(MaterialData ingredient)
ingredient
- The ingredient to removepublic ShapelessRecipe removeIngredient(int count, Material ingredient)
count
- The number of copies to remove.ingredient
- The ingredient to removepublic ShapelessRecipe removeIngredient(int count, MaterialData ingredient)
count
- The number of copies to remove.ingredient
- The ingredient to remove.@Deprecated public ShapelessRecipe removeIngredient(Material ingredient, int rawdata)
ingredient
- The ingredient to removerawdata
- The data value;@Deprecated 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()
public java.util.List<ItemStack> getIngredientList()
public NamespacedKey getKey()
Keyed
public java.lang.String getGroup()
public void setGroup(java.lang.String group)
group
- recipe group. An empty string denotes no group. May not be
null.Copyright © 2018. All rights reserved.