Interface IPlatformHelper

All Known Implementing Classes:
NeoForgePlatformHelper

public interface IPlatformHelper
Platform information that differs between Fabric and NeoForge. Resolved at runtime through Services.
  • Method Details

    • getPlatformName

      String getPlatformName()
      Gets the name of the current platform.
    • isModLoaded

      boolean isModLoaded(String modId)
      Checks if a mod with the given id is loaded.
    • isDevelopmentEnvironment

      boolean isDevelopmentEnvironment()
      Whether the game is running in a development environment.
    • getConfigDir

      Path getConfigDir()
      The loader's configuration directory, used to load the mod's TOML config.
    • getEnvironmentName

      default String getEnvironmentName()