Package com.destroystokyo.paper
Interface Namespaced
- All Known Implementing Classes:
NamespacedKey
,NamespacedTag
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 TypeMethodDescriptiongetKey()
Deprecated, for removal: This API element is subject to removal in a future version.Gets the key corresponding to this resourceDeprecated, 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
Deprecated, for removal: This API element is subject to removal in a future version.Gets the namespace this resource is a part ofThis 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 resourceThis is contractually obligated to only contain lowercase alphanumeric characters, periods, underscores, hyphens, and forward slashes.
- Returns:
- resource key
-