| Modifier and Type | Interface and Description |
|---|---|
static class |
Key.ParseException
An exception thrown when there is an error parsing a key.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MINECRAFT_NAMESPACE
The namespace for Minecraft.
|
| Modifier and Type | Method and Description |
|---|---|
@NonNull java.lang.String |
asString()
Returns the string representation of this key.
|
@NonNull java.lang.String |
namespace()
Gets the namespace.
|
static @NonNull Key |
of(@NonNull java.lang.String string)
Creates a key.
|
static @NonNull Key |
of(@NonNull java.lang.String string,
char character)
Creates a key.
|
static @NonNull Key |
of(@NonNull java.lang.String namespace,
@NonNull java.lang.String value)
Creates a key.
|
@NonNull java.lang.String |
value()
Gets the value.
|
static final java.lang.String MINECRAFT_NAMESPACE
static @NonNull Key of(@NonNull java.lang.String string)
string - the stringKey.ParseException - if the namespace contains an invalid characterKey.ParseException - if the value contains an invalid characterstatic @NonNull Key of(@NonNull java.lang.String string, char character)
string - the stringcharacter - the characterKey.ParseException - if the namespace contains an invalid characterKey.ParseException - if the value contains an invalid characterstatic @NonNull Key of(@NonNull java.lang.String namespace, @NonNull java.lang.String value)
namespace - the namespacevalue - the valueKey.ParseException - if the namespace contains an invalid characterKey.ParseException - if the value contains an invalid character@NonNull java.lang.String namespace()
@NonNull java.lang.String value()
@NonNull java.lang.String asString()