Package wtf.choco.alchema.persistence
Class PersistentDataTypeNamespacedKey
java.lang.Object
wtf.choco.alchema.persistence.PersistentDataTypeNamespacedKey
- All Implemented Interfaces:
org.bukkit.persistence.PersistentDataType<java.lang.String,org.bukkit.NamespacedKey>
public final class PersistentDataTypeNamespacedKey
extends java.lang.Object
implements org.bukkit.persistence.PersistentDataType<java.lang.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 java.lang.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 java.lang.String string, @NotNull org.bukkit.persistence.PersistentDataAdapterContext context)
@NotNull java.lang.Class<org.bukkit.NamespacedKey>
getComplexType()
@NotNull java.lang.Class<java.lang.String>
getPrimitiveType()
@NotNull java.lang.String
toPrimitive(@NotNull org.bukkit.NamespacedKey key, @NotNull org.bukkit.persistence.PersistentDataAdapterContext context)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
fromPrimitive
@NotNull public @NotNull org.bukkit.NamespacedKey fromPrimitive(@NotNull @NotNull java.lang.String string, @NotNull @NotNull org.bukkit.persistence.PersistentDataAdapterContext context)- Specified by:
fromPrimitive
in interfaceorg.bukkit.persistence.PersistentDataType<java.lang.String,org.bukkit.NamespacedKey>
-
toPrimitive
@NotNull public @NotNull java.lang.String toPrimitive(@NotNull @NotNull org.bukkit.NamespacedKey key, @NotNull @NotNull org.bukkit.persistence.PersistentDataAdapterContext context)- Specified by:
toPrimitive
in interfaceorg.bukkit.persistence.PersistentDataType<java.lang.String,org.bukkit.NamespacedKey>
-
getComplexType
@NotNull public @NotNull java.lang.Class<org.bukkit.NamespacedKey> getComplexType()- Specified by:
getComplexType
in interfaceorg.bukkit.persistence.PersistentDataType<java.lang.String,org.bukkit.NamespacedKey>
-
getPrimitiveType
@NotNull public @NotNull java.lang.Class<java.lang.String> getPrimitiveType()- Specified by:
getPrimitiveType
in interfaceorg.bukkit.persistence.PersistentDataType<java.lang.String,org.bukkit.NamespacedKey>
-