Class PixelmonStorageStandardScheduler

java.lang.Object
com.pixelmonmod.pixelmon.storage.schedulers.PixelmonStorageStandardScheduler
All Implemented Interfaces:
StorageSaveScheduler

public class PixelmonStorageStandardScheduler extends Object implements StorageSaveScheduler
  • Field Details

    • lastSaveTick

      protected int lastSaveTick
  • Constructor Details

    • PixelmonStorageStandardScheduler

      public PixelmonStorageStandardScheduler()
  • Method Details

    • getScheduler

      public Executor getScheduler()
      Description copied from interface: StorageSaveScheduler
      Gets the executor that is used to schedule saving logic
      Specified by:
      getScheduler in interface StorageSaveScheduler
      Returns:
      The executor
    • onServerStopping

      public void onServerStopping(net.minecraftforge.event.server.ServerStoppingEvent event)
      Description copied from interface: StorageSaveScheduler
      Called from the Pixelmon class when the server stopping event is fired. This is mandatory as otherwise data may be lost on server shutdown
      Specified by:
      onServerStopping in interface StorageSaveScheduler
      Parameters:
      event - Shutdown event
    • onWorldSave

      public void onWorldSave(net.minecraftforge.event.level.LevelEvent.Save event)
    • saveAll

      public void saveAll()