Class ResearchStorageProxy
java.lang.Object
com.pixelmonmod.pixelmon.api.storage.research.ResearchStorageProxy
Static factory for managing pixelmon research storage
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidclearAll()Clears the cache of all storagesstatic Iterable<ResearchStorage>Gets all the cachedPokemonStoragethis implementation is storingstatic ResearchStorageSaveAdapterGives you the save adapter of the current storage manager.static ResearchStorageSaveSchedulerGives you the save scheduler of the current storage manager.static CompletableFuture<ResearchStorage>getStorage(UUID uuid) Gets the player's research storage waiting until it is loaded from the file if necessarystatic CompletableFuture<ResearchStorage>getStorage(net.minecraft.server.level.ServerPlayer player) Gets the player's research storage waiting until it is loaded from the file if necessarystatic ResearchStorageManagerGives you the current storage managerstatic ResearchStoragegetStorageNow(UUID uuid) Gets the player's research storagestatic ResearchStoragegetStorageNow(net.minecraft.server.level.ServerPlayer player) Gets the player's research storagestatic voidinvalidateCache(ResearchStorage storage) Removes the storage from the cachestatic voidsetSaveAdapter(ResearchStorageSaveAdapter saveAdapter) Sets the implementation of the save adapter
 Should ideally be set using thePixelmonInitEventstatic voidsetSaveScheduler(ResearchStorageSaveScheduler saveScheduler) Sets the implementation of the save scheduler
 Should ideally be set using thePixelmonInitEventstatic voidsetStorageManager(ResearchStorageManager storageManager) Sets the implementation of the storage manager
 Should ideally be set using thePixelmonInitEvent
- 
Method Details- 
getStorageManagerGives you the current storage manager- Returns:
- - The current storage manager
 
- 
setStorageManagerSets the implementation of the storage manager
 Should ideally be set using thePixelmonInitEvent- Parameters:
- storageManager- - The storage manager implementation
 
- 
getSaveSchedulerGives you the save scheduler of the current storage manager.- Returns:
- The save scheduler of the current storage manager.
 
- 
setSaveSchedulerSets the implementation of the save scheduler
 Should ideally be set using thePixelmonInitEvent- Parameters:
- saveScheduler- - The save scheduler implementation
 
- 
getSaveAdapterGives you the save adapter of the current storage manager.- Returns:
- The save adapter of the current storage manager.
 
- 
setSaveAdapterSets the implementation of the save adapter
 Should ideally be set using thePixelmonInitEvent- Parameters:
- saveAdapter- The new save adapter
 
- 
getAllCachedStoragesGets all the cachedPokemonStoragethis implementation is storing- Returns:
- The cached storages
 
- 
clearAllpublic static void clearAll()Clears the cache of all storages
- 
invalidateCacheRemoves the storage from the cache- Parameters:
- storage- The storage to remove
 
- 
getStorageNow@Nullable public static ResearchStorage getStorageNow(net.minecraft.server.level.ServerPlayer player) Gets the player's research storage- Parameters:
- player- The player
- Returns:
- The research storage
 
- 
getStoragepublic static CompletableFuture<ResearchStorage> getStorage(net.minecraft.server.level.ServerPlayer player) Gets the player's research storage waiting until it is loaded from the file if necessary- Parameters:
- player- The player
- Returns:
- The future research storage
 
- 
getStorageNowGets the player's research storage- Parameters:
- uuid- The player
- Returns:
- The research storage
 
- 
getStorageGets the player's research storage waiting until it is loaded from the file if necessary- Parameters:
- uuid- The player
- Returns:
- The future research storage
 
 
-