Interface IPlatformHelper

All Known Implementing Classes:
FabricPlatformHelper

public interface IPlatformHelper
An interface for platform-specific helper service classes.
  • Method Details

    • getPlatformName

      @Nonnull String getPlatformName()
      Get the name of the platform.
      Returns:
      The name of the platform.
    • isModLoaded

      boolean isModLoaded(@Nonnull String modId)
      Check whether the named mod is loaded.
      Parameters:
      modId - The ID of the mod to check.
      Returns:
      Whether the named mod is loaded.
    • isDevelopmentEnvironment

      boolean isDevelopmentEnvironment()
      Check whether the current environment is a development environment.
      Returns:
      Whether the current environment is a development environment.
    • getEnvironmentName

      @Nonnull default String getEnvironmentName()
      Get the name of the current environment.
      Returns:
      The name of the current environment.