Class NBTStorageSaveAdapter
java.lang.Object
com.pixelmonmod.pixelmon.api.pokedex.storage.save.impl.NBTStorageSaveAdapter
- All Implemented Interfaces:
PokeDexStorageSaveAdapter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLoads the specified type ofPokedexStorage
saved under the specified UUID.void
save
(PokedexStorage storage, net.minecraft.core.RegistryAccess registryAccess) Saves the givenPokedexStorage
into persistent data.
-
Constructor Details
-
NBTStorageSaveAdapter
public NBTStorageSaveAdapter()
-
-
Method Details
-
save
Description copied from interface:PokeDexStorageSaveAdapter
Saves the givenPokedexStorage
into persistent data. The UUID and storage type can be derived from the parameter.- Specified by:
save
in interfacePokeDexStorageSaveAdapter
- Parameters:
storage
- ThePokedexStorage
that must be saved.
-
load
Description copied from interface:PokeDexStorageSaveAdapter
Loads the specified type ofPokedexStorage
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 interfacePokeDexStorageSaveAdapter
- Parameters:
uuid
- The UUID of the storage to load. This is typically a player UUID, but it's possible that customPokedexStorage
implementations work differently
-