Class FurnaceRecipe

    • Constructor Detail

      • FurnaceRecipe

        public FurnaceRecipe​(@NotNull
                             NamespacedKey key,
                             @NotNull
                             ItemStack result,
                             @NotNull
                             Material source,
                             float experience,
                             int cookingTime)
        Create a furnace recipe to craft the specified ItemStack.
        Parameters:
        key - The unique recipe key
        result - The item you want the recipe to create.
        source - The input material.
        experience - The experience given by this recipe
        cookingTime - The cooking time (in ticks)
      • FurnaceRecipe

        public FurnaceRecipe​(@NotNull
                             NamespacedKey key,
                             @NotNull
                             ItemStack result,
                             @NotNull
                             RecipeChoice input,
                             float experience,
                             int cookingTime)
        Create a furnace recipe to craft the specified ItemStack.
        Parameters:
        key - The unique recipe key
        result - The item you want the recipe to create.
        input - The input choices.
        experience - The experience given by this recipe
        cookingTime - The cooking time (in ticks)
    • Method Detail

      • setInput

        @NotNull
        public FurnaceRecipe setInput​(@NotNull
                                      MaterialData input)
        Sets the input of this furnace recipe.
        Parameters:
        input - The input material.
        Returns:
        The changed recipe, so you can chain calls.
      • setInput

        @Deprecated
        public FurnaceRecipe setInput​(@NotNull
                                      Material input,
                                      int data)
        Deprecated.
        Magic value
        Sets the input of this furnace recipe.
        Parameters:
        input - The input material.
        data - The data value. (Note: This is currently ignored by the CraftBukkit server.)
        Returns:
        The changed recipe, so you can chain calls.