| Constructor and Description | 
|---|
ShapedRecipe(@NotNull ItemStack result)
Deprecated.  
 | 
ShapedRecipe(@NotNull NamespacedKey key,
            @NotNull ItemStack result)
Create a shaped recipe to craft the specified ItemStack. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
@NotNull Map<Character,RecipeChoice> | 
getChoiceMap()  | 
@NotNull String | 
getGroup()
Get the group of this recipe. 
 | 
@NotNull Map<Character,ItemStack> | 
getIngredientMap()
Get a copy of the ingredients map. 
 | 
@NotNull NamespacedKey | 
getKey()
Return the namespaced identifier for this object. 
 | 
@NotNull ItemStack | 
getResult()
Get the result. 
 | 
@NotNull String[] | 
getShape()
Get the shape. 
 | 
void | 
setGroup(@NotNull String group)
Set the group of this recipe. 
 | 
@NotNull ShapedRecipe | 
setIngredient(char key,
             @NotNull ItemStack item)  | 
@NotNull ShapedRecipe | 
setIngredient(char key,
             @NotNull Material ingredient)
Sets the material that a character in the recipe shape refers to. 
 | 
@NotNull ShapedRecipe | 
setIngredient(char key,
             @NotNull MaterialData ingredient)
Sets the material that a character in the recipe shape refers to. 
 | 
@NotNull ShapedRecipe | 
setIngredient(char key,
             @NotNull Material ingredient,
             int raw)
Deprecated. 
 
Magic value 
 | 
@NotNull ShapedRecipe | 
setIngredient(char key,
             @NotNull RecipeChoice ingredient)  | 
@NotNull ShapedRecipe | 
shape(String... shape)
Set the shape of this recipe to the specified rows. 
 | 
@Deprecated public ShapedRecipe(@NotNull @NotNull ItemStack result)
public ShapedRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result)
key - the unique recipe keyresult - The item you want the recipe to create.shape(String...), 
setIngredient(char, Material), 
setIngredient(char, Material, int), 
setIngredient(char, MaterialData)@NotNull public @NotNull ShapedRecipe shape(@NotNull String... shape)
shape - The rows of the recipe (up to 3 rows).@NotNull public @NotNull ShapedRecipe setIngredient(char key, @NotNull @NotNull MaterialData ingredient)
key - The character that represents the ingredient in the shape.ingredient - The ingredient.@NotNull public @NotNull ShapedRecipe setIngredient(char key, @NotNull @NotNull Material ingredient)
key - The character that represents the ingredient in the shape.ingredient - The ingredient.@Deprecated @NotNull public @NotNull ShapedRecipe setIngredient(char key, @NotNull @NotNull Material ingredient, int raw)
key - The character that represents the ingredient in the shape.ingredient - The ingredient.raw - The raw material data as an integer.@NotNull public @NotNull ShapedRecipe setIngredient(char key, @NotNull @NotNull RecipeChoice ingredient)
@NotNull public @NotNull ShapedRecipe setIngredient(char key, @NotNull @NotNull ItemStack item)
@NotNull public @NotNull Map<Character,ItemStack> getIngredientMap()
@NotNull public @NotNull Map<Character,RecipeChoice> getChoiceMap()
@NotNull public @NotNull String[] getShape()
NullPointerException - when not set yet@NotNull public @NotNull NamespacedKey getKey()
Keyed@NotNull public @NotNull String getGroup()
Copyright © 2022. All rights reserved.