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
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescription@NonNull LocalDateTimefromPrimitive(@NonNull String primitive, @NotNull org.bukkit.persistence.PersistentDataAdapterContext context) @NotNull Class<LocalDateTime> @NonNull StringtoPrimitive(@NonNull LocalDateTime complex, @NotNull org.bukkit.persistence.PersistentDataAdapterContext context)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
PersistentDateTimeType
public PersistentDateTimeType()
-
-
Method Details
-
getPrimitiveType
- Specified by:
getPrimitiveTypein interfaceorg.bukkit.persistence.PersistentDataType<String, LocalDateTime>
-
getComplexType
- Specified by:
getComplexTypein interfaceorg.bukkit.persistence.PersistentDataType<String, LocalDateTime>
-
toPrimitive
public @NonNull String toPrimitive(@NonNull LocalDateTime complex, @NotNull @NotNull org.bukkit.persistence.PersistentDataAdapterContext context) - Specified by:
toPrimitivein interfaceorg.bukkit.persistence.PersistentDataType<String, LocalDateTime>
-
fromPrimitive
public @NonNull LocalDateTime fromPrimitive(@NonNull String primitive, @NotNull @NotNull org.bukkit.persistence.PersistentDataAdapterContext context) - Specified by:
fromPrimitivein interfaceorg.bukkit.persistence.PersistentDataType<String, LocalDateTime>
-