Interface ServerLifecycleEvents.BeforeSave

Enclosing class:
ServerLifecycleEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ServerLifecycleEvents.BeforeSave
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onBeforeSave(MinecraftServer server, boolean flush, boolean force)
    Called before a Minecraft server begins saving data.
  • Method Details

    • onBeforeSave

      void onBeforeSave(MinecraftServer server, boolean flush, boolean force)
      Called before a Minecraft server begins saving data.
      Parameters:
      server - the server
      flush - is true when all chunks are being written to disk, server will likely freeze during this time
      force - whether servers that have save-off set should save