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 BurchAPIprotected PluginJsonWriter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringorg.bukkit.scheduler.BukkitTaskList<Class<? extends JsonDataFile>>List of classes you want a DataStore to automatically load on startupvoidvoidonEnable()When the data store first gets initializedvoidonReload()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:DataStoreWhen the data store first gets initialized -
onReload
public void onReload()Description copied from interface:DataStoreWhen a reload call is called on the data store -
onDisable
public void onDisable() -
asFile
-
dataFiles
Description copied from interface:FileDataStoreList of classes you want a DataStore to automatically load on startup- Specified by:
dataFilesin interfaceFileDataStore- Returns:
-
autoSaveTask
public org.bukkit.scheduler.BukkitTask autoSaveTask()- Specified by:
autoSaveTaskin interfaceFileDataStore
-