Package net.minestom.server.registry
Interface DynamicRegistry.Key<T>
- Type Parameters:
T
- Unused, except to provide compile-time safety and self documentation.
- All Superinterfaces:
net.kyori.adventure.key.Keyed
- Enclosing interface:
DynamicRegistry<T>
public static sealed interface DynamicRegistry.Key<T>
extends net.kyori.adventure.key.Keyed
A key for a
ProtocolObject
in a DynamicRegistry
.-
Method Summary
Modifier and TypeMethodDescriptiondefault net.kyori.adventure.key.Key
key()
default @NotNull String
name()
@NotNull NamespaceID
static <T> @NotNull DynamicRegistry.Key
<T> static <T> @NotNull DynamicRegistry.Key
<T> of
(@NotNull NamespaceID namespace)
-
Method Details
-
of
-
of
-
namespace
-
name
-
key
@Contract(pure=true) @NotNull default net.kyori.adventure.key.Key key()- Specified by:
key
in interfacenet.kyori.adventure.key.Keyed
-