程序包 | 说明 |
---|---|
org.bukkit |
Bukkit的常用类.
|
org.bukkit.event.inventory | |
org.bukkit.inventory |
参与操作玩家物品栏和物品交互的类.
|
限定符和类型 | 方法和说明 |
---|---|
static java.util.List<Recipe> |
Bukkit.getRecipesFor(ItemStack result)
Get a list of all recipes for a given item.
|
java.util.List<Recipe> |
Server.getRecipesFor(ItemStack result)
获取一个合成ItemStack的所有配方,如果副ID为-1将匹配所有的数据值
原文:Get a list of all recipes for a given item.
|
static java.util.Iterator<Recipe> |
Bukkit.recipeIterator()
通过自定义合成配方列表获取迭代器.
|
java.util.Iterator<Recipe> |
Server.recipeIterator()
获取配方迭代器
原文:Get an iterator through the list of crafting recipes.
|
限定符和类型 | 方法和说明 |
---|---|
static boolean |
Bukkit.addRecipe(Recipe recipe)
向合成管理器添加一个合成配方.
|
boolean |
Server.addRecipe(Recipe recipe)
向服务器添加一个配方
原文:Adds a recipe to the crafting manager.
|
限定符和类型 | 方法和说明 |
---|---|
Recipe |
PrepareItemCraftEvent.getRecipe()
Get the recipe that has been formed.
|
Recipe |
CraftItemEvent.getRecipe()
获取合成出该物品所用的合成公式.
|
构造器和说明 |
---|
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) |
限定符和类型 | 类和说明 |
---|---|
class |
FurnaceRecipe
熔炉冶炼配方.
|
class |
MerchantRecipe
Represents a merchant's trade.
|
class |
ShapedRecipe
Represents a shaped (ie normal) crafting recipe.
|
class |
ShapelessRecipe
Represents a shapeless recipe, where the arrangement of the ingredients on
the crafting grid does not matter.
|
限定符和类型 | 方法和说明 |
---|---|
Recipe |
CraftingInventory.getRecipe()
Get the current recipe formed on the crafting inventory, if any.
|