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
ConstructorsModifierConstructorDescriptionprotectedShapedRecipe(@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 TypeMethodDescriptionvoidaddIngredient(DeclareRecipesPacket.Ingredient ingredient) @NotNull StringgetGroup()int@NotNull List<DeclareRecipesPacket.Ingredient> @NotNull ItemStackbooleanintgetWidth()voidsetCategory(RecipeCategory.Crafting category) voidvoidvoidsetShowNotification(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)
-