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)  

    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 String string, @NotNull @NotNull org.bukkit.persistence.PersistentDataAdapterContext context)
      Specified by:
      fromPrimitive in interface org.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 interface org.bukkit.persistence.PersistentDataType<String,​org.bukkit.NamespacedKey>
    • getComplexType

      @NotNull public @NotNull Class<org.bukkit.NamespacedKey> getComplexType()
      Specified by:
      getComplexType in interface org.bukkit.persistence.PersistentDataType<String,​org.bukkit.NamespacedKey>
    • getPrimitiveType

      @NotNull public @NotNull Class<String> getPrimitiveType()
      Specified by:
      getPrimitiveType in interface org.bukkit.persistence.PersistentDataType<String,​org.bukkit.NamespacedKey>