mirror of https://github.com/Minestom/Minestom.git
50 lines
1.6 KiB
Java
50 lines
1.6 KiB
Java
package net.minestom.server.recipe;
|
|
|
|
import net.minestom.server.network.packet.server.play.DeclareRecipesPacket;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
public abstract class SmithingTrimRecipe extends Recipe {
|
|
private DeclareRecipesPacket.Ingredient template;
|
|
private DeclareRecipesPacket.Ingredient baseIngredient;
|
|
private DeclareRecipesPacket.Ingredient additionIngredient;
|
|
|
|
protected SmithingTrimRecipe(
|
|
@NotNull String recipeId,
|
|
@NotNull DeclareRecipesPacket.Ingredient template,
|
|
@NotNull DeclareRecipesPacket.Ingredient baseIngredient,
|
|
@NotNull DeclareRecipesPacket.Ingredient additionIngredient
|
|
) {
|
|
super(RecipeType.SMITHING_TRIM, recipeId);
|
|
this.template = template;
|
|
this.baseIngredient = baseIngredient;
|
|
this.additionIngredient = additionIngredient;
|
|
}
|
|
|
|
@NotNull
|
|
public DeclareRecipesPacket.Ingredient getTemplate() {
|
|
return template;
|
|
}
|
|
|
|
public void setTemplate(@NotNull DeclareRecipesPacket.Ingredient template) {
|
|
this.template = template;
|
|
}
|
|
|
|
@NotNull
|
|
public DeclareRecipesPacket.Ingredient getBaseIngredient() {
|
|
return baseIngredient;
|
|
}
|
|
|
|
public void setBaseIngredient(@NotNull DeclareRecipesPacket.Ingredient baseIngredient) {
|
|
this.baseIngredient = baseIngredient;
|
|
}
|
|
|
|
@NotNull
|
|
public DeclareRecipesPacket.Ingredient getAdditionIngredient() {
|
|
return additionIngredient;
|
|
}
|
|
|
|
public void setAdditionIngredient(@NotNull DeclareRecipesPacket.Ingredient additionIngredient) {
|
|
this.additionIngredient = additionIngredient;
|
|
}
|
|
}
|