接口的使用
org.bukkit.inventory.RecipeChoice
使用RecipeChoice的程序包
-
org.bukkit.inventory中RecipeChoice的使用
修饰符和类型类说明static class代表一种选择,仅当其中一个物品栈完全匹配(除了栈大小)时才有效。static class代表多个匹配材料的选择。修饰符和类型方法说明RecipeChoice.clone()SmithingRecipe.getAddition()获取附加配方物品。SmithingRecipe.getBase()获取基础配方物品。DyeRecipe.getInput()Gets the input material, which will be dyed.ImbueRecipe.getInput()Gets the input material, which will be imbued.TransmuteRecipe.getInput()获取将被转化的输入材料。CookingRecipe.getInputChoice()获取输入选项。StonecuttingRecipe.getInputChoice()获取输入选择。DyeRecipe.getMaterial()Gets the additional dye material required to cause the dyeing.ImbueRecipe.getMaterial()Gets the additional ingredients required to cause the imbuing.TransmuteRecipe.getMaterial()获取触发转化所需的额外材料。SmithingTransformRecipe.getTemplate()获取模板配方物品。SmithingTrimRecipe.getTemplate()获取模板配方物品。返回变量类型为RecipeChoice的类型的org.bukkit.inventory中的方法参数类型为RecipeChoice的org.bukkit.inventory中的方法修饰符和类型方法说明ShapelessRecipe.addIngredient(@NotNull RecipeChoice ingredient) ShapelessRecipe.removeIngredient(@NotNull RecipeChoice ingredient) 从列表中移除一个成分。ShapedRecipe.setIngredient(char key, @NotNull RecipeChoice ingredient) 设置配方形状中某个字符代表的材料。CookingRecipe.setInputChoice(@NotNull RecipeChoice input) 设置此烹饪配方的输入。FurnaceRecipe.setInputChoice(@NotNull RecipeChoice input) StonecuttingRecipe.setInputChoice(@NotNull RecipeChoice input) 设置此烹饪配方的输入。参数类型为RecipeChoice的org.bukkit.inventory中的构造器限定符构造器说明BlastingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime) CampfireRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime) CookingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime) 创建一个烹饪配方来制作指定的物品堆。DyeRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, @NotNull RecipeChoice material) Create a dye recipe to produce a result of the specified type.DyeRecipe(@NotNull NamespacedKey key, @NotNull Material result, @NotNull RecipeChoice input, @NotNull RecipeChoice material) Create a dye recipe to produce a result of the specified type.FurnaceRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime) 创建一个熔炉配方来制作指定的 ItemStack.ImbueRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, @NotNull RecipeChoice material) Create an imbue recipe to produce a result of the specified type.ImbueRecipe(@NotNull NamespacedKey key, @NotNull Material result, @NotNull RecipeChoice input, @NotNull RecipeChoice material) Create an imbue recipe to produce a result of the specified type.SmithingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @Nullable RecipeChoice base, @Nullable RecipeChoice addition) 已过时。SmithingTransformRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @Nullable RecipeChoice template, @Nullable RecipeChoice base, @Nullable RecipeChoice addition) 创建一个锻造配方以产生指定的结果物品。SmithingTrimRecipe(@NotNull NamespacedKey key, @Nullable RecipeChoice template, @Nullable RecipeChoice base, @Nullable RecipeChoice addition) 已过时。必须指定 trimPattern。SmithingTrimRecipe(@NotNull NamespacedKey key, @Nullable RecipeChoice template, @Nullable RecipeChoice base, @Nullable RecipeChoice addition, @NotNull TrimPattern trimPattern) SmokingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime) StonecuttingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input) 创建一个烹饪配方以合成指定的物品。TransmuteRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, @NotNull RecipeChoice material) 创建一个转化配方以产生指定类型的结果。TransmuteRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, @NotNull RecipeChoice material, int minimumMaterialCount, int maximumMaterialCount, boolean addMaterialCountToResult) Create a transmute recipe to produce a result of the specified type.TransmuteRecipe(@NotNull NamespacedKey key, @NotNull Material result, @NotNull RecipeChoice input, @NotNull RecipeChoice material) 创建一个转化配方以产生指定类型的结果。
SmithingTransformRecipe和SmithingTrimRecipe。