public class SpigotSerializer extends Object implements dev.dejvokep.boostedyaml.serialization.YamlSerializer
YamlSerializer designed to handle serialization of types defined
within the Spigot (Bukkit) APIs.
If using this serializer, register all types you need to ConfigurationSerialization. This serializer
internally uses and delegates the serialization logic to that class. Please refer to implementation details and
limitations imposed by that underlying class for further information on how to correctly register and design a custom
type serializer.
This class is designed around the singleton pattern. Use getInstance() to obtain an instance of this
serializer.
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(Map<Object,Object> map) |
static SpigotSerializer |
getInstance()
Returns the instance.
|
Set<Class<?>> |
getSupportedClasses() |
Set<Class<?>> |
getSupportedParentClasses() |
<T> Map<Object,Object> |
serialize(T object,
dev.dejvokep.boostedyaml.utils.supplier.MapSupplier supplier) |
@Nullable public Object deserialize(@NotNull Map<Object,Object> map)
deserialize in interface dev.dejvokep.boostedyaml.serialization.YamlSerializer@Nullable public <T> Map<Object,Object> serialize(@NotNull T object, @NotNull dev.dejvokep.boostedyaml.utils.supplier.MapSupplier supplier)
serialize in interface dev.dejvokep.boostedyaml.serialization.YamlSerializer@NotNull public Set<Class<?>> getSupportedClasses()
getSupportedClasses in interface dev.dejvokep.boostedyaml.serialization.YamlSerializer@NotNull public Set<Class<?>> getSupportedParentClasses()
getSupportedParentClasses in interface dev.dejvokep.boostedyaml.serialization.YamlSerializerpublic static SpigotSerializer getInstance()
Copyright © 2024. All rights reserved.