Class NBTStorageSaveAdapter

java.lang.Object
com.pixelmonmod.pixelmon.api.pokedex.storage.save.impl.NBTStorageSaveAdapter
All Implemented Interfaces:
PokeDexStorageSaveAdapter

public class NBTStorageSaveAdapter extends Object implements PokeDexStorageSaveAdapter
  • Constructor Details

    • NBTStorageSaveAdapter

      public NBTStorageSaveAdapter()
  • Method Details

    • save

      public void save(PokedexStorage storage, net.minecraft.core.RegistryAccess registryAccess)
      Description copied from interface: PokeDexStorageSaveAdapter
      Saves the given PokedexStorage into persistent data. The UUID and storage type can be derived from the parameter.
      Specified by:
      save in interface PokeDexStorageSaveAdapter
      Parameters:
      storage - The PokedexStorage that must be saved.
    • load

      public PokedexStorage load(UUID uuid, net.minecraft.core.RegistryAccess registryAccess)
      Description copied from interface: PokeDexStorageSaveAdapter
      Loads the specified type of PokedexStorage 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 interface PokeDexStorageSaveAdapter
      Parameters:
      uuid - The UUID of the storage to load. This is typically a player UUID, but it's possible that custom PokedexStorage implementations work differently