Class NeoForgePlatformHelper

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getPlatformName() Gets the name of the current platform
      Boolean isModLoaded(String modId) Checks if a mod with the given id is loaded.
      Boolean isDevelopmentEnvironment() Check if the game is currently in a development environment.
      • Methods inherited from class com.mynamesraph.sol.platform.services.PlatformHelper

        getEnvironmentName
      • Methods inherited from class java.lang.Object

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

      • NeoForgePlatformHelper

        NeoForgePlatformHelper()
    • Method Detail

      • getPlatformName

         String getPlatformName()

        Gets the name of the current platform

        Returns:

        The name of the current platform.

      • isModLoaded

         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

         Boolean isDevelopmentEnvironment()

        Check if the game is currently in a development environment.

        Returns:

        True if in a development environment, false otherwise.