Class NBTStorageSaveAdapter
java.lang.Object
com.pixelmonmod.pixelmon.api.storage.research.save.impl.NBTStorageSaveAdapter
- All Implemented Interfaces:
ResearchStorageSaveAdapter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLoads the specified type ofResearchStoragesaved under the specified UUID.voidsave(ResearchStorage storage) Saves the givenResearchStorageinto persistent data.
-
Constructor Details
-
NBTStorageSaveAdapter
public NBTStorageSaveAdapter()
-
-
Method Details
-
save
Description copied from interface:ResearchStorageSaveAdapterSaves the givenResearchStorageinto persistent data. The UUID and storage type can be derived from the parameter.- Specified by:
savein interfaceResearchStorageSaveAdapter- Parameters:
storage- TheResearchStoragethat must be saved.
-
load
Description copied from interface:ResearchStorageSaveAdapterLoads the specified type ofResearchStoragesaved under the specified UUID. The returned value must not be null. If a storage for the UUID and class does not already exist, it must be created and returned.- Specified by:
loadin interfaceResearchStorageSaveAdapter- Parameters:
uuid- The UUID of the storage to load. This is typically a player UUID, but it's possible that customResearchStorageimplementations work differently
-