Package net.minestom.server.utils
Class NamespaceID
java.lang.Object
net.minestom.server.utils.NamespaceID
- All Implemented Interfaces:
CharSequence
,Comparable<net.kyori.adventure.key.Key>
,net.kyori.adventure.key.Key
,net.kyori.adventure.key.Keyed
,net.kyori.adventure.key.Namespaced
,net.kyori.examination.Examinable
Represents a namespaced ID
https://minecraft.wiki/w/Namespaced_ID
-
Field Summary
Fields inherited from interface net.kyori.adventure.key.Key
DEFAULT_SEPARATOR, MINECRAFT_NAMESPACE
-
Method Summary
Modifier and TypeMethodDescription@NotNull String
asString()
char
charAt
(int index) @NotNull String
domain()
boolean
static @NotNull NamespaceID
static @NotNull NamespaceID
static @NotNull NamespaceID
from
(@NotNull net.kyori.adventure.key.Key key) int
hashCode()
int
length()
@NotNull String
@NotNull String
path()
@NotNull CharSequence
subSequence
(int start, int end) @NotNull String
toString()
@NotNull String
value()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
Methods inherited from interface net.kyori.examination.Examinable
examinableName, examine
Methods inherited from interface net.kyori.adventure.key.Key
asMinimalString, compareTo, examinableProperties, key
-
Method Details
-
from
-
from
@NotNull public static @NotNull NamespaceID from(@NotNull @NotNull String domain, @NotNull @NotNull String path) -
from
-
domain
-
path
-
equals
-
hashCode
public int hashCode() -
length
public int length()- Specified by:
length
in interfaceCharSequence
-
charAt
public char charAt(int index) - Specified by:
charAt
in interfaceCharSequence
-
subSequence
- Specified by:
subSequence
in interfaceCharSequence
-
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
namespace
- Specified by:
namespace
in interfacenet.kyori.adventure.key.Key
- Specified by:
namespace
in interfacenet.kyori.adventure.key.Namespaced
-
value
- Specified by:
value
in interfacenet.kyori.adventure.key.Key
-
asString
- Specified by:
asString
in interfacenet.kyori.adventure.key.Key
-