类 FurnaceRecipe

所有已实现的接口:
Recipe, Keyed

public class FurnaceRecipe extends CookingRecipe<FurnaceRecipe>
熔炉冶炼配方.
  • 构造器详细资料

    • FurnaceRecipe

      @Deprecated public FurnaceRecipe(ItemStack result, Material source)
      已过时。
    • FurnaceRecipe

      @Deprecated public FurnaceRecipe(ItemStack result, MaterialData source)
      已过时。
    • FurnaceRecipe

      @Deprecated public FurnaceRecipe(ItemStack result, MaterialData source, float experience)
      已过时。
    • FurnaceRecipe

      @Deprecated public FurnaceRecipe(ItemStack result, Material source, int data)
      已过时。
    • FurnaceRecipe

      public FurnaceRecipe(NamespacedKey key, ItemStack result, Material source, float experience, int cookingTime)
      Create a furnace recipe to craft the specified ItemStack.
      参数:
      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

      @Deprecated public FurnaceRecipe(NamespacedKey key, ItemStack result, Material source, int data, float experience, int cookingTime)
      已过时。
    • FurnaceRecipe

      public FurnaceRecipe(NamespacedKey key, ItemStack result, RecipeChoice input, float experience, int cookingTime)
      Create a furnace recipe to craft the specified ItemStack.
      参数:
      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)
  • 方法详细资料

    • setInput

      public FurnaceRecipe setInput(MaterialData input)
      设置此冶炼配方的原料.

      原文:Sets the input of this furnace recipe.

      参数:
      input - 冶炼原料.
      返回:
      返回新的冶炼配方.
    • setInput

      public FurnaceRecipe setInput(Material input)
      从类复制的说明: CookingRecipe
      Sets the input of this cooking recipe.
      覆盖:
      setInput 在类中 CookingRecipe<FurnaceRecipe>
      参数:
      input - The input material.
      返回:
      The changed recipe, so you can chain calls.
    • setInput

      @Deprecated public FurnaceRecipe setInput(Material input, int data)
      已过时。
      Magic value
      设置此冶炼配方的原料.

      原文:Sets the input of this furnace recipe.

      参数:
      input - 冶炼原料.
      data - 数据值. (注意: 该值目前被CraftBukkit服务器忽略,也就是说没有作用)
      返回:
      返回新的冶炼配方.
    • setInputChoice

      public FurnaceRecipe setInputChoice(RecipeChoice input)
      从类复制的说明: CookingRecipe
      Sets the input of this cooking recipe.
      覆盖:
      setInputChoice 在类中 CookingRecipe<FurnaceRecipe>
      参数:
      input - The input choice.
      返回:
      The changed recipe, so you can chain calls.