Package wtf.choco.arrows.persistence
Class PersistentDataTypeNamespacedKey
java.lang.Object
wtf.choco.arrows.persistence.PersistentDataTypeNamespacedKey
- All Implemented Interfaces:
org.bukkit.persistence.PersistentDataType<String,org.bukkit.NamespacedKey>
public final class PersistentDataTypeNamespacedKey extends Object implements org.bukkit.persistence.PersistentDataType<String,org.bukkit.NamespacedKey>
A
PersistentDataType
implementation for NamespacedKeys
.- Author:
- Parker Hawke - Choco
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.persistence.PersistentDataType
org.bukkit.persistence.PersistentDataType.PrimitivePersistentDataType<T extends Object>
-
Field Summary
Fields inherited from interface org.bukkit.persistence.PersistentDataType
BYTE, BYTE_ARRAY, DOUBLE, FLOAT, INTEGER, INTEGER_ARRAY, LONG, LONG_ARRAY, SHORT, STRING, TAG_CONTAINER, TAG_CONTAINER_ARRAY
-
Method Summary
Modifier and Type Method Description @NotNull org.bukkit.NamespacedKey
fromPrimitive(@NotNull String string, @NotNull org.bukkit.persistence.PersistentDataAdapterContext context)
@NotNull Class<org.bukkit.NamespacedKey>
getComplexType()
@NotNull Class<String>
getPrimitiveType()
@NotNull String
toPrimitive(@NotNull org.bukkit.NamespacedKey key, @NotNull org.bukkit.persistence.PersistentDataAdapterContext context)
-
Method Details
-
fromPrimitive
@NotNull public @NotNull org.bukkit.NamespacedKey fromPrimitive(@NotNull @NotNull String string, @NotNull @NotNull org.bukkit.persistence.PersistentDataAdapterContext context)- Specified by:
fromPrimitive
in interfaceorg.bukkit.persistence.PersistentDataType<String,org.bukkit.NamespacedKey>
-
toPrimitive
@NotNull public @NotNull String toPrimitive(@NotNull @NotNull org.bukkit.NamespacedKey key, @NotNull @NotNull org.bukkit.persistence.PersistentDataAdapterContext context)- Specified by:
toPrimitive
in interfaceorg.bukkit.persistence.PersistentDataType<String,org.bukkit.NamespacedKey>
-
getComplexType
- Specified by:
getComplexType
in interfaceorg.bukkit.persistence.PersistentDataType<String,org.bukkit.NamespacedKey>
-
getPrimitiveType
- Specified by:
getPrimitiveType
in interfaceorg.bukkit.persistence.PersistentDataType<String,org.bukkit.NamespacedKey>
-