Package sawfowl.regionguard.api.data
Interface AdditionalData
@ConfigSerializable
public interface AdditionalData
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObject
Convert class objects to json data array.
It is recommended not to do `return null`.
If you use this method, add all class fields labeled with the `Setting
annotation to the Json object.
The object access key must match the value of the annotation.
If the method returns `null`, an attempt to serialize the class will be made.
-
Method Details
-
toJsonObject
com.google.gson.JsonObject toJsonObject()Convert class objects to json data array.
It is recommended not to do `return null`.
If you use this method, add all class fields labeled with the `Setting
annotation to the Json object.
The object access key must match the value of the annotation.
If the method returns `null`, an attempt to serialize the class will be made.
-