Interface TagKey<T>

All Superinterfaces:
Keyed

@Experimental public sealed interface TagKey<T> extends Keyed
  • Method Summary

    Modifier and Type
    Method
    Description
    static <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.

    Methods inherited from interface net.kyori.adventure.key.Keyed

    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 tag
      key - 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