Package com.burchard36.api.data.json
Class JsonDataStore
java.lang.Object
com.burchard36.api.data.json.JsonDataStore
- All Implemented Interfaces:
DataStore
,FileDataStore
,org.bukkit.event.Listener
-
Field Summary
FieldsModifier and TypeFieldDescriptionHashMap<Enum<?>,JsonDataFile>
protected BurchAPI
protected PluginJsonWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
org.bukkit.scheduler.BukkitTask
List<Class<? extends JsonDataFile>>
List of classes you want a DataStore to automatically load on startupvoid
void
onEnable()
When the data store first gets initializedvoid
onReload()
When a reload call is called on the data store
-
Field Details
-
instance
-
dataFiles
-
writer
-
-
Constructor Details
-
JsonDataStore
-
-
Method Details
-
onEnable
public void onEnable()Description copied from interface:DataStore
When the data store first gets initialized -
onReload
public void onReload()Description copied from interface:DataStore
When a reload call is called on the data store -
onDisable
public void onDisable() -
asFile
-
dataFiles
Description copied from interface:FileDataStore
List of classes you want a DataStore to automatically load on startup- Specified by:
dataFiles
in interfaceFileDataStore
- Returns:
-
autoSaveTask
public org.bukkit.scheduler.BukkitTask autoSaveTask()- Specified by:
autoSaveTask
in interfaceFileDataStore
-