接口的使用
org.bukkit.inventory.Recipe
使用Recipe的程序包
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
参与操作玩家物品栏和物品交互的类.
-
org.bukkit中Recipe的使用
返回Recipe的org.bukkit中的方法修饰符和类型方法说明Bukkit.getCraftingRecipe(@NotNull ItemStack[] craftingMatrix, @NotNull World world) 获取给定物品堆列表对应的配方.Server.getCraftingRecipe(@NotNull ItemStack[] craftingMatrix, @NotNull World world) 获取指定物品堆栈列表对应的配方.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()获取已形成的配方。参数类型为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()获取玩家尝试制作的原始配方.PlayerRecipeBookClickEvent.getRecipe()获取玩家尝试制作的配方.参数类型为Recipe的org.bukkit.event.player中的方法参数类型为Recipe的org.bukkit.event.player中的构造器限定符构造器说明PlayerRecipeBookClickEvent(@NotNull Player player, @NotNull Recipe recipe, boolean shiftClick) -
org.bukkit.inventory中Recipe的使用
修饰符和类型类说明class代表一个高炉冶炼配方.classRepresents a brewing recipe.class代表一个营火烹饪配方.classCookingRecipe<T extends CookingRecipe>代表一个烹饪配方。class代表一个有序或无序的合成配方。classRepresents a recipe which will mix the dye color from theinputwith the dye color from the dyematerialinto theresultbut with the mixed dye color.class熔炉冶炼配方.classRepresents a recipe which will take aninputsurrounded by 8material, with thesourcepotion contents copied into theresult.class代表一个商人交易。class代表一个有序(即普通的)合成配方。class代表一个无序配方,即成分在合成网格中的排列无关紧要。class代表一个锻造配方。class代表一个锻造变换配方。class代表一个锻造装饰配方。class代表一个烟熏炉烹饪配方.class代表一个切石配方。class代表一种配方,当与额外材料结合时会改变输入材料的类型,但保留所有自定义数据。返回Recipe的org.bukkit.inventory中的方法