Class FabricPlatformHelper

java.lang.Object
com.codinglitch.simpleradio.platform.FabricPlatformHelper
All Implemented Interfaces:
PlatformHelper

public class FabricPlatformHelper extends Object implements PlatformHelper
  • Constructor Details

    • FabricPlatformHelper

      public FabricPlatformHelper()
  • Method Details

    • getPlatformName

      public String getPlatformName()
      Description copied from interface: PlatformHelper
      Gets the name of the current platform
      Specified by:
      getPlatformName in interface PlatformHelper
      Returns:
      The name of the current platform.
    • getConfigPath

      public Path getConfigPath()
      Specified by:
      getConfigPath in interface PlatformHelper
    • isModLoaded

      public boolean isModLoaded(String modId)
      Description copied from interface: PlatformHelper
      Checks if a mod with the given id is loaded.
      Specified by:
      isModLoaded in interface PlatformHelper
      Parameters:
      modId - The mod to check if it is loaded.
      Returns:
      True if the mod is loaded, false otherwise.
    • getModVersion

      public String getModVersion(String modId)
      Description copied from interface: PlatformHelper
      Gets the version string of a mod if it is loaded
      Specified by:
      getModVersion in interface PlatformHelper
      Parameters:
      modId - The mod to check if it is loaded.
      Returns:
      The version string of the mod if it is loaded, or an empty string if it is not.
    • isVersionWithin

      public boolean isVersionWithin(String version, String set)
      Description copied from interface: PlatformHelper
      Gets the version string of a mod if it is loaded
      Specified by:
      isVersionWithin in interface PlatformHelper
      Parameters:
      version - The mod to check if it is loaded.
      Returns:
      The version string of the mod if it is loaded, or an empty string if it is not.
    • isDevelopmentEnvironment

      public boolean isDevelopmentEnvironment()
      Description copied from interface: PlatformHelper
      Check if the game is currently in a development environment.
      Specified by:
      isDevelopmentEnvironment in interface PlatformHelper
      Returns:
      True if in a development environment, false otherwise.