Package net.minestom.server.recipe
Class ShapedRecipe
java.lang.Object
net.minestom.server.recipe.Recipe
net.minestom.server.recipe.ShapedRecipe
-
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
ShapedRecipe
(@NotNull String recipeId, int width, int height, @NotNull String group, RecipeCategory.Crafting category, @Nullable List<DeclareRecipesPacket.Ingredient> ingredients, @NotNull ItemStack result, boolean showNotification) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addIngredient
(DeclareRecipesPacket.Ingredient ingredient) @NotNull String
getGroup()
int
@NotNull List
<DeclareRecipesPacket.Ingredient> @NotNull ItemStack
boolean
int
getWidth()
void
setCategory
(RecipeCategory.Crafting category) void
void
void
setShowNotification
(boolean showNotification) Methods inherited from class net.minestom.server.recipe.Recipe
getRecipeId, getRecipeType, shouldShow
-
Constructor Details
-
ShapedRecipe
protected ShapedRecipe(@NotNull @NotNull String recipeId, int width, int height, @NotNull @NotNull String group, @NotNull RecipeCategory.Crafting category, @Nullable @Nullable List<DeclareRecipesPacket.Ingredient> ingredients, @NotNull @NotNull ItemStack result, boolean showNotification)
-
-
Method Details
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getGroup
-
setGroup
-
getCategory
-
setCategory
-
addIngredient
-
getIngredients
-
getResult
-
setResult
-
getShowNotification
public boolean getShowNotification() -
setShowNotification
public void setShowNotification(boolean showNotification)
-