Class DumpUtil

java.lang.Object
com.hypixel.hytale.server.core.util.DumpUtil

public class DumpUtil extends Object
  • Constructor Details

    • DumpUtil

      public DumpUtil()
  • Method Details

    • dumpToJson

      @Nonnull public static Path dumpToJson() throws IOException
      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

      @Nonnull public static Map<UUID, DumpUtil.PlayerTextData> 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

      @Nonnull public static Path dump(boolean crash, boolean printToConsole)
    • createDumpPath

      @Nonnull public static Path createDumpPath(boolean crash, String ext)