Interface TransmuteRecipe.Builder

Enclosing interface:
TransmuteRecipe

public static interface TransmuteRecipe.Builder
Builds a TransmuteRecipe.

Builders are mutable and are not safe to share between threads.

Since:
0.1.0
  • Method Details

    • input

      Parameters:
      input - the item transformed
      Returns:
      this builder
      Since:
      0.1.0
    • material

      TransmuteRecipe.Builder material(Ingredient material)
      Parameters:
      material - what transforms it
      Returns:
      this builder
      Since:
      0.1.0
    • materialCount

      TransmuteRecipe.Builder materialCount(int min, int max)
      Parameters:
      min - the fewest materials, at least 1
      max - the most materials, at least min and at most 8
      Returns:
      this builder
      Since:
      0.1.0
    • result

      Makes the input become another item. Its count is how many items one craft gives and its components go on top of those of the input.
      Parameters:
      result - the item the input becomes
      Returns:
      this builder
      Since:
      0.1.0
    • keepInputItem

      TransmuteRecipe.Builder keepInputItem(int count)
      Keeps the item of the input: one craft gives count copies of it.
      Parameters:
      count - how many items one craft gives
      Returns:
      this builder
      Since:
      0.1.0
    • addMaterialCountToResult

      TransmuteRecipe.Builder addMaterialCountToResult(boolean add)
      Parameters:
      add - whether the result gains one item per material
      Returns:
      this builder
      Since:
      0.1.0
    • group

      Parameters:
      group - the recipe book group, empty for none
      Returns:
      this builder
      Since:
      0.1.0
    • category

      Parameters:
      category - the recipe book tab
      Returns:
      this builder
      Since:
      0.1.0
    • build

      Returns:
      the recipe
      Throws:
      IllegalArgumentException - if the input or the material is missing
      Since:
      0.1.0