Contents
Class DumpUtil
java.lang.Object
com.hypixel.hytale.server.core.util.DumpUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordPre-collected player component data for text dump access. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<UUID, DumpUtil.PlayerTextData> Collects player text data from all worlds in parallel for text dump.static PathcreateDumpPath(boolean crash, String ext) static Pathdump(boolean crash, boolean printToConsole) static PathDumps server state to JSON file with thread-safe player component data collection.
-
Constructor Details
-
DumpUtil
public DumpUtil()
-
-
Method Details
-
dumpToJson
Dumps server state to JSON file with thread-safe player component data collection.- Returns:
- the path to the created dump file
- Throws:
IOException- if writing the file fails
-
collectPlayerTextData
Collects player text data from all worlds in parallel for text dump. Each world's data is collected on its own thread, ensuring thread-safe component access.- Returns:
- a map of player UUID to their text data
-
dump
-
createDumpPath
-