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
  • Method Summary

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

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

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