接口的使用
org.bukkit.inventory.RecipeChoice
使用RecipeChoice的程序包
-
org.bukkit.inventory中RecipeChoice的使用
修饰符和类型类说明static classRepresents a choice that will be valid only if one of the stacks is exactly matched (aside from stack size).static classRepresents a choice of multiple matching Materials.修饰符和类型方法说明RecipeChoice.clone()SmithingRecipe.getAddition()Get the addition recipe item.SmithingRecipe.getBase()Get the base recipe item.TransmuteRecipe.getInput()Gets the input material, which will be transmuted.CookingRecipe.getInputChoice()Get the input choice.StonecuttingRecipe.getInputChoice()Get the input choice.TransmuteRecipe.getMaterial()Gets the additional material required to cause the transmutation.SmithingTransformRecipe.getTemplate()Get the template recipe item.SmithingTrimRecipe.getTemplate()Get the template recipe item.返回变量类型为RecipeChoice的类型的org.bukkit.inventory中的方法修饰符和类型方法说明ShapelessRecipe.getChoiceList()ShapedRecipe.getChoiceMap()Get a copy of the choice map.参数类型为RecipeChoice的org.bukkit.inventory中的方法修饰符和类型方法说明ShapelessRecipe.addIngredient(@NotNull RecipeChoice ingredient) ShapelessRecipe.removeIngredient(@NotNull RecipeChoice ingredient) Removes an ingredient from the list.ShapedRecipe.setIngredient(char key, @NotNull RecipeChoice ingredient) Sets theRecipeChoicethat a character in the recipe shape refers to.CookingRecipe.setInputChoice(@NotNull RecipeChoice input) Sets the input of this cooking recipe.FurnaceRecipe.setInputChoice(@NotNull RecipeChoice input) StonecuttingRecipe.setInputChoice(@NotNull RecipeChoice input) Sets the input of this cooking recipe.参数类型为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) Create a cooking recipe to craft the specified ItemStack.FurnaceRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime) Create a furnace recipe to craft the specified ItemStack.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) Create a smithing recipe to produce the specified result ItemStack.SmithingTrimRecipe(@NotNull NamespacedKey key, @Nullable RecipeChoice template, @Nullable RecipeChoice base, @Nullable RecipeChoice addition) 已过时。trimPattern must be specifiedSmithingTrimRecipe(@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) Create a cooking recipe to craft the specified ItemStack.TransmuteRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, @NotNull RecipeChoice material) 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) Create a transmute recipe to produce a result of the specified type.
SmithingTransformRecipeandSmithingTrimRecipe.