类的使用
org.bukkit.NamespacedKey
使用NamespacedKey的程序包
-
org.bukkit中NamespacedKey的使用
返回NamespacedKey的org.bukkit中的方法修饰符和类型方法说明Keyed.getKey()
Return the namespaced identifier for this object.static NamespacedKey
Get a key in the Minecraft namespace.static NamespacedKey
NamespacedKey.randomKey()
已过时。should never be used by plugins, for internal use only!!参数类型为NamespacedKey的org.bukkit中的方法修饰符和类型方法说明static Advancement
Bukkit.getAdvancement
(NamespacedKey key) 通过Key获得特定的进度对象.Server.getAdvancement
(NamespacedKey key) Get the advancement specified by this key.UnsafeValues.loadAdvancement
(NamespacedKey key, 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 byUnsafeValues.loadAdvancement(org.bukkit.NamespacedKey, java.lang.String)
. -
org.bukkit.inventory中NamespacedKey的使用
参数类型为NamespacedKey的org.bukkit.inventory中的构造器限定符构造器说明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. -
org.bukkit.inventory.meta中NamespacedKey的使用
返回变量类型为NamespacedKey的类型的org.bukkit.inventory.meta中的方法参数类型为NamespacedKey的org.bukkit.inventory.meta中的方法修饰符和类型方法说明void
KnowledgeBookMeta.addRecipe
(NamespacedKey... recipes) Adds new recipe to the end of the book.类型变量类型为NamespacedKey的org.bukkit.inventory.meta中的方法参数修饰符和类型方法说明void
KnowledgeBookMeta.setRecipes
(List<NamespacedKey> recipes) Clears the existing book recipes, and sets the book to use the provided recipes.