Package net.minestom.server.recipe
Class ShapelessRecipe
java.lang.Object
net.minestom.server.recipe.Recipe
net.minestom.server.recipe.ShapelessRecipe
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minestom.server.recipe.Recipe
Recipe.Type
-
Field Summary
Fields inherited from class net.minestom.server.recipe.Recipe
recipeId, recipeType
-
Constructor Summary
ModifierConstructorDescriptionprotected
ShapelessRecipe
(@NotNull String recipeId, @NotNull String group, RecipeCategory.Crafting category, @Nullable List<DeclareRecipesPacket.Ingredient> ingredients, @NotNull ItemStack result) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addIngredient
(DeclareRecipesPacket.Ingredient ingredient) @NotNull String
getGroup()
@NotNull List
<DeclareRecipesPacket.Ingredient> @NotNull ItemStack
void
setCategory
(RecipeCategory.Crafting category) void
void
Methods inherited from class net.minestom.server.recipe.Recipe
getRecipeId, getRecipeType, shouldShow
-
Constructor Details
-
ShapelessRecipe
protected ShapelessRecipe(@NotNull @NotNull String recipeId, @NotNull @NotNull String group, @NotNull RecipeCategory.Crafting category, @Nullable @Nullable List<DeclareRecipesPacket.Ingredient> ingredients, @NotNull @NotNull ItemStack result)
-
-
Method Details
-
getGroup
-
setGroup
-
getCategory
-
setCategory
-
addIngredient
-
getIngredients
-
getResult
-
setResult
-