Interface PlatformHelper

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract String getPlatformName() Gets the name of the current platform
      abstract Boolean isModLoaded(String modId) Checks if a mod with the given id is loaded.
      abstract Boolean isDevelopmentEnvironment() Check if the game is currently in a development environment.
      String getEnvironmentName() Gets the name of the environment type as a string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getPlatformName

         abstract String getPlatformName()

        Gets the name of the current platform

        Returns:

        The name of the current platform.

      • isModLoaded

         abstract Boolean isModLoaded(String modId)

        Checks if a mod with the given id is loaded.

        Parameters:
        modId - The mod to check if it is loaded.
        Returns:

        True if the mod is loaded, false otherwise.

      • isDevelopmentEnvironment

         abstract Boolean isDevelopmentEnvironment()

        Check if the game is currently in a development environment.

        Returns:

        True if in a development environment, false otherwise.

      • getEnvironmentName

         String getEnvironmentName()

        Gets the name of the environment type as a string.

        Returns:

        The name of the environment type.