Package com.destroystokyo.paper
Class NamespacedTag
java.lang.Object
com.destroystokyo.paper.NamespacedTag
- All Implemented Interfaces:
Namespaced
@Deprecated(forRemoval=true,
since="1.20.6")
public final class NamespacedTag
extends Object
implements Namespaced
Deprecated, for removal: This API element is subject to removal in a future version.
Represents a String based key pertaining to a tagged entry. Consists of two components - a namespace
and a key.
Namespaces may only contain lowercase alphanumeric characters, periods, underscores, and hyphens.
Keys may only contain lowercase alphanumeric characters, periods, underscores, hyphens, and forward slashes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.The namespace representing all keys generated by Bukkit for backwards compatibility measures.static final StringDeprecated, for removal: This API element is subject to removal in a future version.The namespace representing all inbuilt keys. -
Constructor Summary
ConstructorsConstructorDescriptionNamespacedTag(@NotNull String namespace, @NotNull String key) Deprecated.should never be used by plugins, for internal use only!!NamespacedTag(@NotNull Plugin plugin, @NotNull String key) Deprecated, for removal: This API element is subject to removal in a future version.Create a key in the plugin's namespace. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.getKey()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 ofinthashCode()Deprecated, for removal: This API element is subject to removal in a future version.static @NotNull NamespacedTagDeprecated, for removal: This API element is subject to removal in a future version.Get a key in the Minecraft namespace.static NamespacedTagDeprecated.should never be used by plugins, for internal use only!!toString()Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
MINECRAFT
Deprecated, for removal: This API element is subject to removal in a future version.The namespace representing all inbuilt keys.- See Also:
-
BUKKIT
Deprecated, for removal: This API element is subject to removal in a future version.The namespace representing all keys generated by Bukkit for backwards compatibility measures.- See Also:
-
-
Constructor Details
-
NamespacedTag
Deprecated.should never be used by plugins, for internal use only!!Create a key in a specific namespace.- Parameters:
namespace- String representing a grouping of keyskey- Name for this specific key
-
NamespacedTag
Deprecated, for removal: This API element is subject to removal in a future version.Create a key in the plugin's namespace.Namespaces may only contain lowercase alphanumeric characters, periods, underscores, and hyphens.
Keys may only contain lowercase alphanumeric characters, periods, underscores, hyphens, and forward slashes.
- Parameters:
plugin- the plugin to use for the namespacekey- the key to create
-
-
Method Details
-
getNamespace
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:NamespacedGets the namespace this resource is a part ofThis is contractually obligated to only contain lowercase alphanumeric characters, periods, underscores, and hyphens.
- Specified by:
getNamespacein interfaceNamespaced- Returns:
- resource namespace
-
getKey
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:NamespacedGets the key corresponding to this resourceThis is contractually obligated to only contain lowercase alphanumeric characters, periods, underscores, hyphens, and forward slashes.
- Specified by:
getKeyin interfaceNamespaced- Returns:
- resource key
-
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version. -
equals
Deprecated, for removal: This API element is subject to removal in a future version. -
toString
Deprecated, for removal: This API element is subject to removal in a future version. -
randomKey
Deprecated.should never be used by plugins, for internal use only!!Return a new random key in theBUKKITnamespace.- Returns:
- new key
-
minecraft
Deprecated, for removal: This API element is subject to removal in a future version.Get a key in the Minecraft namespace.- Parameters:
key- the key to use- Returns:
- new key in the Minecraft namespace
-