Interface IPlatformHelper

All Known Implementing Classes:
NeoForgePlatformHelper

public interface IPlatformHelper
A public interface that defines platform-specific functionality for the BlueLib mod.

This interface provides methods to retrieve the platform name, check for loaded mods, and determine if the game is running in a development environment.

Key Methods:

Since:
1.0.0
  • Method Details

    • getPlatformName

      String getPlatformName()
      A String method that retrieves the name of the current platform.
      Returns:
      The name of the current platform as a String.
      Since:
      1.0.0
    • isModLoaded

      boolean isModLoaded(String pModId)
      A Boolean method that checks if a mod with the given ID is loaded.
      Parameters:
      pModId - String - The ID of the mod to check.
      Returns:
      true if the mod is loaded, false if it isn't.
      Since:
      1.0.0
    • isDevelopmentEnvironment

      boolean isDevelopmentEnvironment()
      A Boolean method that checks if the game is currently running in a development environment.
      Returns:
      true if running in a development environment, false if it isn't.
      Since:
      1.0.0
    • getEnvironmentName

      default String getEnvironmentName()
      A String method that retrieves the name of the current environment type.

      The environment type is either "development" or "production" based on whether the game is running in a development environment.

      Returns:
      String - The name of the environment type.
      Since:
      1.0.0