Class StringPersistentType

java.lang.Object
me.deecaad.core.compatibility.nbt.StringPersistentType
All Implemented Interfaces:
org.bukkit.persistence.PersistentDataType<byte[],String[]>

public class StringPersistentType extends Object implements org.bukkit.persistence.PersistentDataType<byte[],String[]>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.bukkit.persistence.PersistentDataType

    org.bukkit.persistence.PersistentDataType.BooleanPersistentDataType, org.bukkit.persistence.PersistentDataType.PrimitivePersistentDataType<P>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

    Fields inherited from interface org.bukkit.persistence.PersistentDataType

    BOOLEAN, BYTE, BYTE_ARRAY, DOUBLE, FLOAT, INTEGER, INTEGER_ARRAY, LIST, LONG, LONG_ARRAY, SHORT, STRING, TAG_CONTAINER, TAG_CONTAINER_ARRAY
  • Method Summary

    Modifier and Type
    Method
    Description
    String @NotNull []
    fromPrimitive(byte @NotNull [] primitive, @NotNull org.bukkit.persistence.PersistentDataAdapterContext context)
     
    @NotNull Class<String[]>
     
    @NotNull Class<byte[]>
     
    byte @NotNull []
    toPrimitive(String[] complex, @NotNull org.bukkit.persistence.PersistentDataAdapterContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • getPrimitiveType

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

      @NotNull public @NotNull Class<String[]> getComplexType()
      Specified by:
      getComplexType in interface org.bukkit.persistence.PersistentDataType<byte[],String[]>
    • toPrimitive

      public byte @NotNull [] toPrimitive(String[] complex, @NotNull @NotNull org.bukkit.persistence.PersistentDataAdapterContext context)
      Specified by:
      toPrimitive in interface org.bukkit.persistence.PersistentDataType<byte[],String[]>
    • fromPrimitive

      public String @NotNull [] fromPrimitive(byte @NotNull [] primitive, @NotNull @NotNull org.bukkit.persistence.PersistentDataAdapterContext context)
      Specified by:
      fromPrimitive in interface org.bukkit.persistence.PersistentDataType<byte[],String[]>