接口的使用
org.bukkit.inventory.Recipe
使用Recipe的程序包
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
参与操作玩家物品栏和物品交互的类.
- 
org.bukkit中Recipe的使用返回Recipe的org.bukkit中的方法修饰符和类型方法说明Bukkit.getCraftingRecipe(@NotNull ItemStack[] craftingMatrix, @NotNull World world) Get theRecipefor the list of ItemStacks provided.Server.getCraftingRecipe(@NotNull ItemStack[] craftingMatrix, @NotNull World world) Get theRecipefor the list of ItemStacks provided.Bukkit.getRecipe(@NotNull NamespacedKey recipeKey) 根据指定的 key 获取配方.Server.getRecipe(@NotNull NamespacedKey recipeKey) 根据指定的 key 获取配方.返回变量类型为Recipe的类型的org.bukkit中的方法修饰符和类型方法说明Bukkit.getRecipesFor(@NotNull ItemStack result) 获取对指定物品适用的所有合成配方的列表.Server.getRecipesFor(@NotNull ItemStack result) 获取对指定物品适用的所有合成配方的列表.Bukkit.recipeIterator()获取合成配方列表迭代器.Server.recipeIterator()获取合成配方列表迭代器.参数类型为Recipe的org.bukkit中的方法
- 
org.bukkit.event.inventory中Recipe的使用修饰符和类型方法说明CraftItemEvent.getRecipe()获取合成出该物品所用的合成公式.PrepareItemCraftEvent.getRecipe()Get the recipe that has been formed.参数类型为Recipe的org.bukkit.event.inventory中的构造器限定符构造器说明CraftItemEvent(@NotNull Recipe recipe, @NotNull InventoryView what, @NotNull InventoryType.SlotType type, int slot, @NotNull ClickType click, @NotNull InventoryAction action) CraftItemEvent(@NotNull Recipe recipe, @NotNull InventoryView what, @NotNull InventoryType.SlotType type, int slot, @NotNull ClickType click, @NotNull InventoryAction action, int key) 
- 
org.bukkit.event.player中Recipe的使用修饰符和类型方法说明PlayerRecipeBookClickEvent.getOriginalRecipe()Gets the original recipe the player was trying to craft.PlayerRecipeBookClickEvent.getRecipe()Gets the recipe the player is trying to craft.参数类型为Recipe的org.bukkit.event.player中的方法修饰符和类型方法说明voidSet the recipe that will be used.参数类型为Recipe的org.bukkit.event.player中的构造器限定符构造器说明PlayerRecipeBookClickEvent(@NotNull Player player, @NotNull Recipe recipe, boolean shiftClick) 
- 
org.bukkit.inventory中Recipe的使用修饰符和类型接口说明interfaceRepresents a complex recipe which has imperative server-defined behavior, eg armor dyeing.修饰符和类型类说明classRepresents a campfire recipe.classRepresents a campfire recipe.classCookingRecipe<T extends CookingRecipe>Represents a cooking recipe.classRepresents a shaped or shapeless crafting recipe.class熔炉冶炼配方.classRepresents a merchant's trade.classRepresents a shaped (ie normal) crafting recipe.classRepresents a shapeless recipe, where the arrangement of the ingredients on the crafting grid does not matter.classRepresents a smithing recipe.classRepresents a smithing transform recipe.classRepresents a smithing trim recipe.classRepresents a campfire recipe.classRepresents a Stonecutting recipe.classRepresents a recipe which will change the type of the input material when combined with an additional material, but preserve all custom data.返回Recipe的org.bukkit.inventory中的方法