Package io.papermc.paper.registry.holder
Interface RegistryHolder.Reference<API,ENTRY>
- Type Parameters:
API
- the registry's typeENTRY
- 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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.papermc.paper.registry.holder.RegistryHolder
RegistryHolder.Inlined<API,
ENTRY>, RegistryHolder.Reference<API, ENTRY> -
Method Summary
-
Method Details
-
key
The key of the referenced value.- Returns:
- the key of the value
-