Interface TagKey<T>

All Superinterfaces:
Keyed

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

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

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

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