| 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(RecipeChoice ingredient) |
|
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
|
List<RecipeChoice> |
getChoiceList() |
|
String |
getGroup() |
Get the group of this recipe.
|
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(RecipeChoice ingredient) |
Removes 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) |
Deprecated.
Magic value
|
void |
setGroup(String group) |
Set the group of this recipe.
|
@Deprecated public ShapelessRecipe(@NotNull ItemStack result)
public ShapelessRecipe(@NotNull
NamespacedKey key,
@NotNull
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)@NotNull public ShapelessRecipe addIngredient(@NotNull MaterialData ingredient)
ingredient - The ingredient to add.@NotNull public ShapelessRecipe addIngredient(@NotNull Material ingredient)
ingredient - The ingredient to add.@Deprecated @NotNull public ShapelessRecipe addIngredient(@NotNull Material ingredient, int rawdata)
ingredient - The ingredient to add.rawdata - The data value, or -1 to allow any data value.@NotNull public ShapelessRecipe addIngredient(int count, @NotNull MaterialData ingredient)
count - How many to add (can't be more than 9!)ingredient - The ingredient to add.@NotNull public ShapelessRecipe addIngredient(int count, @NotNull Material ingredient)
count - How many to add (can't be more than 9!)ingredient - The ingredient to add.@Deprecated @NotNull public ShapelessRecipe addIngredient(int count, @NotNull 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.@NotNull public ShapelessRecipe addIngredient(@NotNull RecipeChoice ingredient)
@NotNull public ShapelessRecipe removeIngredient(@NotNull RecipeChoice ingredient)
ingredient - The ingredient to remove@NotNull public ShapelessRecipe removeIngredient(@NotNull Material ingredient)
ingredient - The ingredient to remove@NotNull public ShapelessRecipe removeIngredient(@NotNull MaterialData ingredient)
ingredient - The ingredient to remove@NotNull public ShapelessRecipe removeIngredient(int count, @NotNull Material ingredient)
count - The number of copies to remove.ingredient - The ingredient to remove@NotNull public ShapelessRecipe removeIngredient(int count, @NotNull MaterialData ingredient)
count - The number of copies to remove.ingredient - The ingredient to remove.@Deprecated @NotNull public ShapelessRecipe removeIngredient(@NotNull Material ingredient, int rawdata)
ingredient - The ingredient to removerawdata - The data value;@Deprecated @NotNull public ShapelessRecipe removeIngredient(int count, @NotNull Material ingredient, int rawdata)
count - The number of copies to remove.ingredient - The ingredient to remove.rawdata - The data value.@NotNull public ItemStack getResult()
@NotNull public List<ItemStack> getIngredientList()
@NotNull public List<RecipeChoice> getChoiceList()
@NotNull public NamespacedKey getKey()
Keyed@NotNull public String getGroup()
public void setGroup(@NotNull
String group)
group - recipe group. An empty string denotes no group. May not be
null.Copyright © 2019. All rights reserved.