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 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 NamespaceID namespace)
    • namespace

      @Contract(pure=true) @NotNull @NotNull 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