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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionNamespacedTag(@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 SummaryModifier 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- 
MINECRAFTDeprecated, for removal: This API element is subject to removal in a future version.The namespace representing all inbuilt keys.- See Also:
 
- 
BUKKITDeprecated, 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- 
NamespacedTagDeprecated.should never be used by plugins, for internal use only!!Create a key in a specific namespace.- Parameters:
- namespace- String representing a grouping of keys
- key- Name for this specific key
 
- 
NamespacedTagDeprecated, 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 namespace
- key- the key to create
 
 
- 
- 
Method Details- 
getNamespaceDeprecated, 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 interface- Namespaced
- Returns:
- resource namespace
 
- 
getKeyDeprecated, 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 interface- Namespaced
- Returns:
- resource key
 
- 
hashCodepublic int hashCode()Deprecated, for removal: This API element is subject to removal in a future version.
- 
equalsDeprecated, for removal: This API element is subject to removal in a future version.
- 
toStringDeprecated, for removal: This API element is subject to removal in a future version.
- 
randomKeyDeprecated.should never be used by plugins, for internal use only!!Return a new random key in theBUKKITnamespace.- Returns:
- new key
 
- 
minecraftDeprecated, 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
 
 
-