Interface SmithingRecipe.Builder.ResultStep

    • Method Detail

      • result

        SmithingRecipe.Builder.EndStep result​(ItemStack result)
        Changes the result and returns this builder. The result is the ItemStack created when the recipe is fulfilled.
        Parameters:
        result - The output of this recipe
        Returns:
        This builder, for chaining
      • result

        SmithingRecipe.Builder.EndStep result​(java.util.function.Function<Inventory,​ItemStack> resultFunction,
                                              ItemStack exemplaryResult)
        Changes the result and returns this builder. The result is the ItemStack created when the recipe is fulfilled.
        Parameters:
        resultFunction - The result function
        exemplaryResult - The exemplary output of this recipe
        Returns:
        This builder, for chaining