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