Class CauldronRecipe.Builder

java.lang.Object
wtf.choco.alchema.crafting.CauldronRecipe.Builder
Enclosing class:
CauldronRecipe

public static final class CauldronRecipe.Builder
extends java.lang.Object
A builder for immutable CauldronRecipe instances.
  • Method Details

    • addIngredient

      @NotNull public CauldronRecipe.Builder addIngredient​(@NotNull @NotNull CauldronIngredient ingredient)
      Add an ingredient to the recipe.
      Parameters:
      ingredient - the ingredient to add
      Returns:
      this instance. Allows for chained method calls
    • setExperience

      @NotNull public CauldronRecipe.Builder setExperience​(int experience)
      Set the experience to be yielded from crafting this recipe. The experience set is directly proportional to ExperienceOrb.setExperience(int).
      Parameters:
      experience - the experience to set. Must be positive or 0
      Returns:
      this instance. Allows for chained method calls
    • setComment

      @NotNull public CauldronRecipe.Builder setComment​(@Nullable @Nullable java.lang.String comment)
      Set the comment for this recipe. Comments are purely aesthetic.
      Parameters:
      comment - the comment to set
      Returns:
      this instance. Allows for chained method calls
    • build

      @NotNull public @NotNull CauldronRecipe build()
      Build a new CauldronRecipe instance.
      Returns:
      the cauldron recipe