Class PersistentDateTimeType

java.lang.Object
net.mathias2246.buildmc.util.persistentDataTypes.PersistentDateTimeType
All Implemented Interfaces:
org.bukkit.persistence.PersistentDataType<String, LocalDateTime>

public class PersistentDateTimeType extends Object implements org.bukkit.persistence.PersistentDataType<String, LocalDateTime>
  • 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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

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

    Methods inherited from class Object

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

  • Constructor Details

    • PersistentDateTimeType

      public PersistentDateTimeType()
  • Method Details

    • getPrimitiveType

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

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

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

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