public class MinecraftKey extends Object
Keys are in the format prefix:key
| Constructor and Description |
|---|
MinecraftKey(String key)
Constructs a new key with minecraft prefix and a key.
|
MinecraftKey(String prefix,
String key)
Constructs a new key with a given prefix and key.
|
| Modifier and Type | Method and Description |
|---|---|
static MinecraftKey |
fromEnum(Enum<?> value)
Deprecated.
This isn't accurate in all cases
|
static MinecraftKey |
fromHandle(Object handle)
Creates a MinecraftKey wrapper from a Minecraft handle.
|
static EquivalentConverter<MinecraftKey> |
getConverter() |
String |
getEnumFormat()
Deprecated.
This isn't accurate in all cases
|
String |
getFullKey()
Gets the full key of this MinecraftKey.
|
String |
getKey()
Gets the key of this MinecraftKey.
|
String |
getPrefix()
Gets the prefix of this MinecraftKey.
|
public MinecraftKey(String prefix, String key)
prefix - The prefix, usually minecraft.key - The key, the part we care aboutpublic MinecraftKey(String key)
key - The keypublic static MinecraftKey fromHandle(Object handle)
handle - The handle@Deprecated public static MinecraftKey fromEnum(Enum<?> value)
value - The valuepublic String getPrefix()
public String getKey()
public String getFullKey()
prefix:key@Deprecated public String getEnumFormat()
public static EquivalentConverter<MinecraftKey> getConverter()
Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.