Class PlatformFileProvider

java.lang.Object
wtf.ranked.hytale.server.runner.platform.PlatformFileProvider

@NullMarked public final class PlatformFileProvider extends Object
Provides the appropriate platform-specific file configuration based on the host operating system.
  • Constructor Details

    • PlatformFileProvider

      public PlatformFileProvider()
  • Method Details

    • getPlatformFile

      public static PlatformFile getPlatformFile()
      Detects the current operating system and returns its corresponding platform file.
      Returns:
      the platform file matching the current OS
      Throws:
      NullPointerException - if the current operating system is not supported