接口的使用
org.bukkit.inventory.Recipe
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
参与操作玩家物品栏和物品交互的类.
-
org.bukkit中Recipe的使用
修饰符和类型方法说明Bukkit.getCraftingRecipe
(@NotNull ItemStack[] craftingMatrix, @NotNull World world) Get theRecipe
for the list of ItemStacks provided.Server.getCraftingRecipe
(@NotNull ItemStack[] craftingMatrix, @NotNull World world) Get theRecipe
for the list of ItemStacks provided.Bukkit.getRecipe
(@NotNull NamespacedKey recipeKey) 根据指定的 key 获取配方
.Server.getRecipe
(@NotNull NamespacedKey recipeKey) 根据指定的 key 获取配方
.修饰符和类型方法说明Bukkit.getRecipesFor
(@NotNull ItemStack result) 获取对指定物品适用的所有合成配方的列表.Server.getRecipesFor
(@NotNull ItemStack result) 获取对指定物品适用的所有合成配方的列表.Bukkit.recipeIterator()
获取合成配方列表迭代器.Server.recipeIterator()
获取合成配方列表迭代器. -
org.bukkit.event.inventory中Recipe的使用
修饰符和类型方法说明CraftItemEvent.getRecipe()
获取合成出该物品所用的合成公式.PrepareItemCraftEvent.getRecipe()
Get the recipe that has been formed.限定符构造器说明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.修饰符和类型方法说明void
Set the recipe that will be used.限定符构造器说明PlayerRecipeBookClickEvent
(@NotNull Player player, @NotNull Recipe recipe, boolean shiftClick) -
org.bukkit.inventory中Recipe的使用
修饰符和类型接口说明interface
Represents a complex recipe which has imperative server-defined behavior, eg armor dyeing.修饰符和类型类说明class
Represents a campfire recipe.class
Represents a campfire recipe.class
CookingRecipe<T extends CookingRecipe>
Represents a cooking recipe.class
Represents a shaped or shapeless crafting recipe.class
熔炉冶炼配方.class
Represents a merchant's trade.class
Represents a shaped (ie normal) crafting recipe.class
Represents a shapeless recipe, where the arrangement of the ingredients on the crafting grid does not matter.class
Represents a smithing recipe.class
Represents a smithing transform recipe.class
Represents a smithing trim recipe.class
Represents a campfire recipe.class
Represents a Stonecutting recipe.