Class SQLiteStorage
java.lang.Object
com.zetaplugins.cookieclickerz.storage.Storage
com.zetaplugins.cookieclickerz.storage.SQLStorage
com.zetaplugins.cookieclickerz.storage.SQLiteStorage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTopCookiesPerClick(int limit) Get a List of the top players by cookies per click.getTopOfflineCookies(int limit) Get a List of the top players by offline cookies.getTopPrestige(int limit) Get a List of the top players by prestige level.getTopTotalClicks(int limit) Get a List of the top players by total clicks.getTopTotalCookies(int limit) Get a List of the top players by total cookies.voidimportData(String fileName) Import player data from a file.voidinit()Initialize the storage system.Load a player data object from the storage system.Load a player data object from the storage system.voidsave(PlayerData playerData) Save a player data object to the storage system.voidSave all cached data to the storage system.Methods inherited from class com.zetaplugins.cookieclickerz.storage.SQLStorage
export, getAllPlayers, loadAchievements, loadPlayerData, loadUpgradesMethods inherited from class com.zetaplugins.cookieclickerz.storage.Storage
getMaxCacheSize, getPlugin, shouldUsePlayerCache
-
Constructor Details
-
SQLiteStorage
-
-
Method Details
-
init
public void init()Description copied from class:StorageInitialize the storage system. -
save
Description copied from class:StorageSave a player data object to the storage system. -
load
Description copied from class:StorageLoad a player data object from the storage system. -
load
Description copied from class:StorageLoad a player data object from the storage system. -
importData
Description copied from class:StorageImport player data from a file.- Specified by:
importDatain classStorage- Parameters:
fileName- The name of the file to import from.
-
getTopTotalCookies
Description copied from class:StorageGet a List of the top players by total cookies.- Specified by:
getTopTotalCookiesin classStorage- Parameters:
limit- The maximum number of players to return.- Returns:
- A List of the top players. PlayerData does not contain achievements and upgrades.
-
getTopCookiesPerClick
Description copied from class:StorageGet a List of the top players by cookies per click.- Specified by:
getTopCookiesPerClickin classStorage- Parameters:
limit- The maximum number of players to return.- Returns:
- A List of the top players. PlayerData does not contain achievements and upgrades.
-
getTopOfflineCookies
Description copied from class:StorageGet a List of the top players by offline cookies.- Specified by:
getTopOfflineCookiesin classStorage- Parameters:
limit- The maximum number of players to return.- Returns:
- A List of the top players. PlayerData does not contain achievements and upgrades.
-
getTopPrestige
Description copied from class:StorageGet a List of the top players by prestige level.- Specified by:
getTopPrestigein classStorage- Parameters:
limit- The maximum number of players to return.- Returns:
- A List of the top players. PlayerData does not contain achievements and upgrades.
-
getTopTotalClicks
Description copied from class:StorageGet a List of the top players by total clicks.- Specified by:
getTopTotalClicksin classStorage- Parameters:
limit- The maximum number of players to return.- Returns:
- A List of the top players. PlayerData does not contain achievements and upgrades.
-
saveAllCachedData
public void saveAllCachedData()Description copied from class:StorageSave all cached data to the storage system.- Specified by:
saveAllCachedDatain classStorage
-