Interface Namespaced

All Known Implementing Classes:
NamespacedKey, NamespacedTag

@Deprecated(forRemoval=true, since="1.20.6") public interface Namespaced
Deprecated, for removal: This API element is subject to removal in a future version.
Represents a namespaced resource, see NamespacedKey for single elements or NamespacedTag for a collection of elements Namespaces may only contain lowercase alphanumeric characters, periods, underscores, and hyphens.

Keys may only contain lowercase alphanumeric characters, periods, underscores, hyphens, and forward slashes.

You should not be implementing this interface yourself, use NamespacedKey or NamespacedTag as needed instead.

  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the key corresponding to this resource
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the namespace this resource is a part of
  • Method Details

    • getNamespace

      @NotNull @NotNull String getNamespace()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the namespace this resource is a part of

      This is contractually obligated to only contain lowercase alphanumeric characters, periods, underscores, and hyphens.

      Returns:
      resource namespace
    • getKey

      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the key corresponding to this resource

      This is contractually obligated to only contain lowercase alphanumeric characters, periods, underscores, hyphens, and forward slashes.

      Returns:
      resource key