Add support for deserializing manually deserialized items, also add caller note

This commit is contained in:
Shane Freeder
2025-04-15 09:30:44 +01:00
parent c0bd5688b5
commit a55345f991
2 changed files with 17 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
package org.bukkit.configuration.serialization;
import java.util.Map;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
/**
@@ -30,8 +31,12 @@ public interface ConfigurationSerializable {
* This class must provide a method to restore this class, as defined in
* the {@link ConfigurationSerializable} interface javadocs.
*
* nb: It is not intended for this method to be called directly, this will
* be called by the {@link ConfigurationSerialization} class.
*
* @return Map containing the current state of this class
*/
@NotNull
@ApiStatus.OverrideOnly
public Map<String, Object> serialize();
}