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 StringasString()charcharAt(int index) @NotNull Stringdomain()booleanstatic @NotNull NamespaceIDstatic @NotNull NamespaceIDstatic @NotNull NamespaceIDfrom(@NotNull net.kyori.adventure.key.Key key) inthashCode()intlength()@NotNull String@NotNull Stringpath()@NotNull CharSequencesubSequence(int start, int end) @NotNull StringtoString()@NotNull Stringvalue()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmptyMethods inherited from interface net.kyori.examination.Examinable
examinableName, examineMethods 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:
lengthin interfaceCharSequence
-
charAt
public char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
namespace
- Specified by:
namespacein interfacenet.kyori.adventure.key.Key- Specified by:
namespacein interfacenet.kyori.adventure.key.Namespaced
-
value
- Specified by:
valuein interfacenet.kyori.adventure.key.Key
-
asString
- Specified by:
asStringin interfacenet.kyori.adventure.key.Key
-