程序包 | 说明 |
---|---|
org.bukkit |
Bukkit的常用类.
|
org.bukkit.inventory |
参与操作玩家物品栏和物品交互的类.
|
org.bukkit.inventory.meta |
用于操作可以被存储在
物品堆 的额外数据的接口. |
限定符和类型 | 方法和说明 |
---|---|
NamespacedKey |
Keyed.getKey()
Return the namespaced identifier for this object.
|
static NamespacedKey |
NamespacedKey.minecraft(java.lang.String key)
Get a key in the Minecraft namespace.
|
static NamespacedKey |
NamespacedKey.randomKey()
已过时。
should never be used by plugins, for internal use only!!
|
限定符和类型 | 方法和说明 |
---|---|
static Advancement |
Bukkit.getAdvancement(NamespacedKey key)
通过Key获得特定的进度对象.
|
Advancement |
Server.getAdvancement(NamespacedKey key)
Get the advancement specified by this key.
|
Advancement |
UnsafeValues.loadAdvancement(NamespacedKey key,
java.lang.String advancement)
已过时。
Load an advancement represented by the specified string into the server.
|
boolean |
UnsafeValues.removeAdvancement(NamespacedKey key)
已过时。
Delete an advancement which was loaded and saved by
UnsafeValues.loadAdvancement(org.bukkit.NamespacedKey, java.lang.String) . |
限定符和类型 | 方法和说明 |
---|---|
NamespacedKey |
ShapedRecipe.getKey() |
NamespacedKey |
ShapelessRecipe.getKey() |
构造器和说明 |
---|
ShapedRecipe(NamespacedKey key,
ItemStack result)
Create a shaped recipe to craft the specified ItemStack.
|
ShapelessRecipe(NamespacedKey key,
ItemStack result)
Create a shapeless recipe to craft the specified ItemStack.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.List<NamespacedKey> |
KnowledgeBookMeta.getRecipes()
Gets all the recipes in the book.
|
限定符和类型 | 方法和说明 |
---|---|
void |
KnowledgeBookMeta.addRecipe(NamespacedKey... recipes)
Adds new recipe to the end of the book.
|
限定符和类型 | 方法和说明 |
---|---|
void |
KnowledgeBookMeta.setRecipes(java.util.List<NamespacedKey> recipes)
Clears the existing book recipes, and sets the book to use the provided
recipes.
|