All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minestom.server.recipe.StonecutterRecipe Maven / Gradle / Ivy

There is a newer version: 7320437640
Show newest version
package net.minestom.server.recipe;

import net.minestom.server.item.ItemStack;
import net.minestom.server.network.packet.server.play.DeclareRecipesPacket;
import org.jetbrains.annotations.NotNull;

public abstract class StonecutterRecipe extends Recipe {
    private String group;
    private DeclareRecipesPacket.Ingredient ingredient;
    private ItemStack result;

    protected StonecutterRecipe(
            @NotNull String recipeId,
            @NotNull String group,
            @NotNull DeclareRecipesPacket.Ingredient ingredient,
            @NotNull ItemStack result
    ) {
        super(RecipeType.STONECUTTING, recipeId);
        this.group = group;
        this.ingredient = ingredient;
        this.result = result;
    }

    @NotNull
    public String getGroup() {
        return group;
    }

    public void setGroup(@NotNull String group) {
        this.group = group;
    }

    @NotNull
    public DeclareRecipesPacket.Ingredient getIngredient() {
        return ingredient;
    }

    public void setIngredient(@NotNull DeclareRecipesPacket.Ingredient ingredient) {
        this.ingredient = ingredient;
    }

    @NotNull
    public ItemStack getResult() {
        return result;
    }

    public void setResult(@NotNull ItemStack result) {
        this.result = result;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy