接口的使用
org.bukkit.inventory.Recipe
程序包
说明
Bukkit的常用类.
参与操作玩家物品栏和物品交互的类.
-
org.bukkit中Recipe的使用
修饰符和类型方法说明Bukkit.getRecipesFor
(ItemStack result) Get a list of all recipes for a given item.Server.getRecipesFor
(ItemStack result) 获取一个合成ItemStack的所有配方,如果副ID为-1将匹配所有的数据值Bukkit.recipeIterator()
通过自定义合成配方列表获取迭代器.Server.recipeIterator()
获取配方迭代器 -
org.bukkit.event.inventory中Recipe的使用
修饰符和类型方法说明CraftItemEvent.getRecipe()
获取合成出该物品所用的合成公式.PrepareItemCraftEvent.getRecipe()
Get the recipe that has been formed.限定符构造器说明CraftItemEvent
(Recipe recipe, InventoryView what, InventoryType.SlotType type, int slot, ClickType click, InventoryAction action) CraftItemEvent
(Recipe recipe, InventoryView what, InventoryType.SlotType type, int slot, ClickType click, InventoryAction action, int key) -
org.bukkit.inventory中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.