Class FileConfigurationDataType
java.lang.Object
com.jeff_media.morepersistentdatatypes.datatypes.FileConfigurationDataType
- All Implemented Interfaces:
PersistentDataType<String,
FileConfiguration>
public class FileConfigurationDataType
extends Object
implements PersistentDataType<String,FileConfiguration>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.persistence.PersistentDataType
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromPrimitive
(String s, PersistentDataAdapterContext persistentDataAdapterContext) toPrimitive
(FileConfiguration fileConfiguration, PersistentDataAdapterContext persistentDataAdapterContext)
-
Constructor Details
-
FileConfigurationDataType
public FileConfigurationDataType()
-
-
Method Details
-
getPrimitiveType
- Specified by:
getPrimitiveType
in interfacePersistentDataType<String,
FileConfiguration>
-
getComplexType
- Specified by:
getComplexType
in interfacePersistentDataType<String,
FileConfiguration>
-
toPrimitive
@NotNull public String toPrimitive(@NotNull FileConfiguration fileConfiguration, @NotNull PersistentDataAdapterContext persistentDataAdapterContext) - Specified by:
toPrimitive
in interfacePersistentDataType<String,
FileConfiguration>
-
fromPrimitive
@NotNull public FileConfiguration fromPrimitive(@NotNull String s, @NotNull PersistentDataAdapterContext persistentDataAdapterContext) - Specified by:
fromPrimitive
in interfacePersistentDataType<String,
FileConfiguration>
-