接口的使用
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.CookingRecipe.getInputChoice()Get the input choice.StonecuttingRecipe.getInputChoice()Get the input choice.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, @NotNull RecipeChoice base, @NotNull RecipeChoice addition) 已过时。SmithingTransformRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice template, @NotNull RecipeChoice base, @NotNull RecipeChoice addition) Create a smithing recipe to produce the specified result ItemStack.SmithingTrimRecipe(@NotNull NamespacedKey key, @NotNull RecipeChoice template, @NotNull RecipeChoice base, @NotNull RecipeChoice addition) Create a smithing recipe to produce the specified result ItemStack.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.
SmithingTransformRecipeandSmithingTrimRecipe.