程序包 org.bukkit
类 NamespacedKey
java.lang.Object
org.bukkit.NamespacedKey
Represents a String based key which consists of two components - a namespace
and a key.
Namespaces may only contain lowercase alphanumeric characters, periods,
underscores, and hyphens.
Keys may only contain lowercase alphanumeric characters, periods, underscores, hyphens, and forward slashes.
-
字段概要
字段 -
构造器概要
构造器构造器说明NamespacedKey(String namespace, String key) 已过时。should never be used by plugins, for internal use only!!NamespacedKey(Plugin plugin, String key) Create a key in the plugin's namespace. -
方法概要
修饰符和类型方法说明booleangetKey()inthashCode()static NamespacedKeyGet a key in the Minecraft namespace.static NamespacedKey已过时。should never be used by plugins, for internal use only!!toString()
-
字段详细资料
-
构造器详细资料
-
NamespacedKey
已过时。should never be used by plugins, for internal use only!!Create a key in a specific namespace.- 参数:
namespace-key-
-
NamespacedKey
Create a key in the plugin's namespace.- 参数:
plugin- the plugin to use for the namespacekey- the key to create
-
-
方法详细资料
-
getNamespace
-
getKey
-
hashCode
public int hashCode() -
equals
-
toString
-
randomKey
已过时。should never be used by plugins, for internal use only!!Return a new random key in theBUKKITnamespace.- 返回:
- new key
-
minecraft
Get a key in the Minecraft namespace.- 参数:
key- the key to use- 返回:
- new key in the Minecraft namespace
-