类 ShapelessRecipe

java.lang.Object
org.bukkit.inventory.CraftingRecipe
org.bukkit.inventory.ShapelessRecipe
所有已实现的接口:
Recipe, Keyed

public class ShapelessRecipe extends CraftingRecipe
代表一个无序配方,即成分在合成网格中的排列无关紧要。
  • 构造器详细资料

  • 方法详细资料

    • addIngredient

      @NotNull public @NotNull ShapelessRecipe addIngredient(@NotNull @NotNull MaterialData ingredient)
      添加指定的成分。
      参数:
      ingredient - 要添加的成分。
      返回:
      修改后的配方,以便链式调用。

      原文:Adds the specified ingredient.

    • addIngredient

      @NotNull public @NotNull ShapelessRecipe addIngredient(@NotNull @NotNull Material ingredient)
      添加指定的成分。
      参数:
      ingredient - 要添加的成分。
      返回:
      修改后的配方,以便链式调用。

      原文:Adds the specified ingredient.

    • addIngredient

      @Deprecated(since="1.6.2") @NotNull public @NotNull ShapelessRecipe addIngredient(@NotNull @NotNull Material ingredient, int rawdata)
      已过时。
      魔法值。

      原文:Adds the specified ingredient.

      添加指定的成分。
      参数:
      ingredient - 要添加的成分。
      rawdata - 数据值,或 -1 表示允许任何数据值。
      返回:
      修改后的配方,以便链式调用。
    • addIngredient

      @NotNull public @NotNull ShapelessRecipe addIngredient(int count, @NotNull @NotNull MaterialData ingredient)
      添加多个指定成分。
      参数:
      count - 要添加的数量(不能超过9个!)。
      ingredient - 要添加的成分。
      返回:
      修改后的配方,以便链式调用。

      原文:Adds multiples of the specified ingredient.

    • addIngredient

      @NotNull public @NotNull ShapelessRecipe addIngredient(int count, @NotNull @NotNull Material ingredient)
      添加多个指定成分。
      参数:
      count - 要添加的数量(不能超过9个!)。
      ingredient - 要添加的成分。
      返回:
      修改后的配方,以便链式调用。

      原文:Adds multiples of the specified ingredient.

    • addIngredient

      @Deprecated(since="1.6.2") @NotNull public @NotNull ShapelessRecipe addIngredient(int count, @NotNull @NotNull Material ingredient, int rawdata)
      已过时。
      魔法值。

      原文:Adds multiples of the specified ingredient.

      添加多个指定成分。
      参数:
      count - 要添加的数量(不能超过9个!)。
      ingredient - 要添加的成分。
      rawdata - 数据值,或 -1 表示允许任何数据值。
      返回:
      修改后的配方,以便链式调用。
    • addIngredient

      @NotNull public @NotNull ShapelessRecipe addIngredient(@NotNull @NotNull RecipeChoice ingredient)
    • removeIngredient

      @NotNull public @NotNull ShapelessRecipe removeIngredient(@NotNull @NotNull RecipeChoice ingredient)
      从列表中移除一个成分。
      参数:
      ingredient - 要移除的成分。
      返回:
      修改后的配方。

      原文:Removes an ingredient from the list.

    • removeIngredient

      @NotNull public @NotNull ShapelessRecipe removeIngredient(@NotNull @NotNull Material ingredient)
      从列表中移除一个成分。如果该成分出现多次,只移除其中一个实例。仅移除数据值为 0 的精确匹配项。
      参数:
      ingredient - 要移除的成分。
      返回:
      修改后的配方。

      原文:Removes an ingredient from the list. If the ingredient occurs multiple times, only one instance of it is removed. Only removes exact matches, with a data value of 0.

    • removeIngredient

      @NotNull public @NotNull ShapelessRecipe removeIngredient(@NotNull @NotNull MaterialData ingredient)
      从列表中移除一个成分。如果该成分出现多次,只移除其中一个实例。如果数据值为 -1,则只移除数据值为 -1 的成分。
      参数:
      ingredient - 要移除的成分。
      返回:
      修改后的配方。

      原文:Removes an ingredient from the list. If the ingredient occurs multiple times, only one instance of it is removed. If the data value is -1, only ingredients with a -1 data value will be removed.

    • removeIngredient

      @NotNull public @NotNull ShapelessRecipe removeIngredient(int count, @NotNull @NotNull Material ingredient)
      从列表中移除多个成分实例。如果实例数量少于指定数量,将全部移除。仅移除数据值为 0 的精确匹配项。
      参数:
      count - 要移除的副本数量。
      ingredient - 要移除的成分。
      返回:
      修改后的配方。

      原文:Removes multiple instances of an ingredient from the list. If there are less instances then specified, all will be removed. Only removes exact matches, with a data value of 0.

    • removeIngredient

      @NotNull public @NotNull ShapelessRecipe removeIngredient(int count, @NotNull @NotNull MaterialData ingredient)
      从列表中移除多个成分实例。如果实例数量少于指定数量,将全部移除。如果数据值为 -1,则只移除数据值为 -1 的成分。
      参数:
      count - 要移除的副本数量。
      ingredient - 要移除的成分。
      返回:
      修改后的配方。

      原文:Removes multiple instances of an ingredient from the list. If there are less instances then specified, all will be removed. If the data value is -1, only ingredients with a -1 data value will be removed.

    • removeIngredient

      @Deprecated(since="1.6.2") @NotNull public @NotNull ShapelessRecipe removeIngredient(@NotNull @NotNull Material ingredient, int rawdata)
      已过时。
      魔法值。

      原文:Removes an ingredient from the list. If the ingredient occurs multiple times, only one instance of it is removed. If the data value is -1, only ingredients with a -1 data value will be removed.

      从列表中移除一个成分。如果该成分出现多次,只移除其中一个实例。如果数据值为 -1,则只移除数据值为 -1 的成分。
      参数:
      ingredient - 要移除的成分。
      rawdata - 数据值。
      返回:
      修改后的配方。
    • removeIngredient

      @Deprecated(since="1.6.2") @NotNull public @NotNull ShapelessRecipe removeIngredient(int count, @NotNull @NotNull Material ingredient, int rawdata)
      已过时。
      魔法值。

      原文:Removes multiple instances of an ingredient from the list. If there are less instances then specified, all will be removed. If the data value is -1, only ingredients with a -1 data value will be removed.

      从列表中移除多个成分实例。如果实例数量少于指定数量,将全部移除。如果数据值为 -1,则只移除数据值为 -1 的成分。
      参数:
      count - 要移除的副本数量。
      ingredient - 要移除的成分。
      rawdata - 数据值。
      返回:
      修改后的配方。
    • getIngredientList

      @NotNull public @NotNull List<ItemStack> getIngredientList()
      获取此配方使用的成分列表。
      返回:
      输入列表。

      原文:Get the list of ingredients used for this recipe.

    • getChoiceList

      @NotNull public @NotNull List<RecipeChoice> getChoiceList()