Package io.papermc.paper.registry.tag
Interface TagKey<T>
- All Superinterfaces:
Keyed
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TagKey
<T> create
(RegistryKey<T> registryKey, Key key) Creates a new tag key for a registry.Get the registry key for this tag key.
-
Method Details
-
create
@Contract(value="_, _ -> new", pure=true) static <T> TagKey<T> create(RegistryKey<T> registryKey, Key key) Creates a new tag key for a registry.- Type Parameters:
T
- the registry value type- Parameters:
registryKey
- the registry for the tagkey
- the specific key for the tag- Returns:
- a new tag key
-
registryKey
RegistryKey<T> registryKey()Get the registry key for this tag key.- Returns:
- the registry key
-