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.Keykey()default @NotNull Stringname()@NotNull net.minestom.server.utils.NamespaceIDstatic <T> @NotNull DynamicRegistry.Key<T> static <T> @NotNull DynamicRegistry.Key<T> of(@NotNull net.minestom.server.utils.NamespaceID namespace)
-
Method Details
-
of
-
of
@NotNull static <T> @NotNull DynamicRegistry.Key<T> of(@NotNull @NotNull net.minestom.server.utils.NamespaceID namespace) -
namespace
@Contract(pure=true) @NotNull @NotNull net.minestom.server.utils.NamespaceID namespace() -
name
-
key
@Contract(pure=true) @NotNull default net.kyori.adventure.key.Key key()- Specified by:
keyin interfacenet.kyori.adventure.key.Keyed
-