- 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.
-
Method Summary
void
Called before a Minecraft server begins saving data.
-
Method Details
-
onBeforeSave
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