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 Type
    Method
    Description
    default net.kyori.adventure.key.Key
    key()
     
    default @NotNull String
     
    @NotNull net.minestom.server.utils.NamespaceID
     
    static <T> @NotNull DynamicRegistry.Key<T>
    of(@NotNull String namespace)
     
    static <T> @NotNull DynamicRegistry.Key<T>
    of(@NotNull net.minestom.server.utils.NamespaceID namespace)
     
  • Method Details

    • of

      @NotNull static <T> @NotNull DynamicRegistry.Key<T> of(@NotNull @NotNull String namespace)
    • 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

      @Contract(pure=true) @NotNull default @NotNull String name()
    • key

      @Contract(pure=true) @NotNull default net.kyori.adventure.key.Key key()
      Specified by:
      key in interface net.kyori.adventure.key.Keyed