public final class NamespacedKey extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BUKKIT
The namespace representing all keys generated by Bukkit for backwards
compatability measures.
|
static String |
MINECRAFT
The namespace representing all inbuilt keys.
|
Constructor and Description |
---|
NamespacedKey(Plugin plugin,
String key)
Create a key in the plugin's namespace.
|
NamespacedKey(String namespace,
String key)
Deprecated.
should never be used by plugins, for internal use only!!
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getKey() |
String |
getNamespace() |
int |
hashCode() |
static NamespacedKey |
minecraft(String key)
Get a key in the Minecraft namespace.
|
static NamespacedKey |
randomKey()
Deprecated.
should never be used by plugins, for internal use only!!
|
String |
toString() |
public static final String MINECRAFT
public static final String BUKKIT
@Deprecated public NamespacedKey(String namespace, String key)
namespace
- key
- public String getNamespace()
public String getKey()
@Deprecated public static NamespacedKey randomKey()
BUKKIT
namespace.public static NamespacedKey minecraft(String key)
key
- the key to useCopyright © 2017. All rights reserved.