Constructor | Description |
---|---|
StonecuttingRecipe(NamespacedKey key,
ItemStack result,
RecipeChoice input) |
Create a cooking recipe to craft the specified ItemStack.
|
StonecuttingRecipe(NamespacedKey key,
ItemStack result,
Material source) |
Create a Stonecutting recipe to craft the specified ItemStack.
|
Modifier and Type | Method | Description |
---|---|---|
String |
getGroup() |
Get the group of this recipe.
|
ItemStack |
getInput() |
Get the input material.
|
RecipeChoice |
getInputChoice() |
Get the input choice.
|
NamespacedKey |
getKey() |
Return the namespaced identifier for this object.
|
ItemStack |
getResult() |
Get the result of this recipe.
|
void |
setGroup(String group) |
Set the group of this recipe.
|
StonecuttingRecipe |
setInput(Material input) |
Sets the input of this cooking recipe.
|
StonecuttingRecipe |
setInputChoice(RecipeChoice input) |
Sets the input of this cooking recipe.
|
public StonecuttingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source)
key
- The unique recipe keyresult
- The item you want the recipe to create.source
- The input material.public StonecuttingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input)
key
- The unique recipe keyresult
- The item you want the recipe to create.input
- The input choices.@NotNull public StonecuttingRecipe setInput(@NotNull Material input)
input
- The input material.@NotNull public ItemStack getInput()
@NotNull public StonecuttingRecipe setInputChoice(@NotNull RecipeChoice input)
input
- The input choice.@NotNull public RecipeChoice getInputChoice()
@NotNull public ItemStack getResult()
@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 © 2020. All rights reserved.