Interface ObjectConfigSerializer<T>
- Type Parameters:
T- the type of object to serialize
- All Known Implementing Classes:
ConfigParser,DefaultConfigParser,StringHashMapParser
Deprecated, for removal: This API element is subject to removal in a future version.
Interface for serializing objects to Bukkit configuration MemorySection.
Used for complex object serialization in YAML configuration files. Implementors should convert their objects to a MemorySection structure that can be saved to and loaded from configuration files.
Example Usage:
public class MyDataSerializer implements ObjectConfigSerializer<MyData> {
public MemorySection serializeToMemorySection(MyData data) {
// Convert MyData to MemorySection
// ...
}
}
- Since:
- 6.0.0
- Author:
- wisdomme
- Scheduled removal version:
- 6.4.0
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.configuration.MemorySectionserializeToMemorySection(T object) Deprecated, for removal: This API element is subject to removal in a future version.Serializes an object to a Bukkit MemorySection.
-
Method Details
-
serializeToMemorySection
Deprecated, for removal: This API element is subject to removal in a future version.Serializes an object to a Bukkit MemorySection.- Parameters:
object- the object to serialize- Returns:
- the MemorySection containing the serialized data
-
ConfigConverterandConfigConverterFor; removed in the next version.