Class NBTStorageSaveAdapter
java.lang.Object
com.pixelmonmod.pixelmon.api.storage.research.save.impl.NBTStorageSaveAdapter
- All Implemented Interfaces:
ResearchStorageSaveAdapter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionLoads the specified type ofResearchStorage
saved under the specified UUID.void
save
(ResearchStorage storage) Saves the givenResearchStorage
into persistent data.
-
Constructor Details
-
NBTStorageSaveAdapter
public NBTStorageSaveAdapter()
-
-
Method Details
-
save
Description copied from interface:ResearchStorageSaveAdapter
Saves the givenResearchStorage
into persistent data. The UUID and storage type can be derived from the parameter.- Specified by:
save
in interfaceResearchStorageSaveAdapter
- Parameters:
storage
- TheResearchStorage
that must be saved.
-
load
Description copied from interface:ResearchStorageSaveAdapter
Loads the specified type ofResearchStorage
saved 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:
load
in interfaceResearchStorageSaveAdapter
- Parameters:
uuid
- The UUID of the storage to load. This is typically a player UUID, but it's possible that customResearchStorage
implementations work differently
-