Interface RegistryHolder.Reference<API,ENTRY>

Type Parameters:
API - the registry's type
ENTRY - the type of the registry entry
All Superinterfaces:
RegistryHolder<API,ENTRY>
Enclosing interface:
RegistryHolder<API,ENTRY>

@NonExtendable public static non-sealed interface RegistryHolder.Reference<API,ENTRY> extends RegistryHolder<API,ENTRY>
A holder that references a registry value by key, but does not have the entry itself. This is used for entries that are only referenced by key and may not yet have any value associated with them.
  • Method Details

    • key

      TypedKey<API> key()
      The key of the referenced value.
      Returns:
      the key of the value