Class PixelmonStorageStandardScheduler
java.lang.Object
com.pixelmonmod.pixelmon.storage.schedulers.PixelmonStorageStandardScheduler
- All Implemented Interfaces:
StorageSaveScheduler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the executor that is used to schedule saving logicvoidonServerStopping(net.minecraftforge.event.server.ServerStoppingEvent event) Called from thePixelmonclass when the server stopping event is fired.voidonWorldSave(net.minecraftforge.event.level.LevelEvent.Save event) voidsaveAll()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pixelmonmod.pixelmon.api.storage.StorageSaveScheduler
save
-
Field Details
-
lastSaveTick
protected int lastSaveTick
-
-
Constructor Details
-
PixelmonStorageStandardScheduler
public PixelmonStorageStandardScheduler()
-
-
Method Details
-
getScheduler
Description copied from interface:StorageSaveSchedulerGets the executor that is used to schedule saving logic- Specified by:
getSchedulerin interfaceStorageSaveScheduler- Returns:
- The executor
-
onServerStopping
public void onServerStopping(net.minecraftforge.event.server.ServerStoppingEvent event) Description copied from interface:StorageSaveSchedulerCalled from thePixelmonclass when the server stopping event is fired. This is mandatory as otherwise data may be lost on server shutdown- Specified by:
onServerStoppingin interfaceStorageSaveScheduler- Parameters:
event- Shutdown event
-
onWorldSave
public void onWorldSave(net.minecraftforge.event.level.LevelEvent.Save event) -
saveAll
public void saveAll()
-