Interface CookingRecipe.Builder.ResultStep

    • Method Detail

      • result

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

        default CookingRecipe.Builder.EndStep result​(java.util.function.Supplier<? extends ItemType> result)
        Changes the result and returns this builder. The result is the ItemType created when the recipe is fulfilled.
        Parameters:
        result - The output of this recipe
        Returns:
        This builder, for chaining
      • result

        CookingRecipe.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

        CookingRecipe.Builder.EndStep result​(java.util.function.Function<Inventory,​ItemStack> resultFunction,
                                             ItemStack exemplaryResult)
        Sets the result function and an exemplary result.
        Parameters:
        resultFunction - The result function
        exemplaryResult - The exemplary result stack
        Returns:
        The builder