Class FabricPlatformHelper

java.lang.Object
io.github.gameking1happy.gk1hcore.platform.FabricPlatformHelper
All Implemented Interfaces:
IPlatformHelper

public class FabricPlatformHelper extends Object implements IPlatformHelper
Fabric code for the platform helper which provides information which platform the mod is running on.
  • Constructor Details

    • FabricPlatformHelper

      public FabricPlatformHelper()
  • Method Details

    • getPlatformName

      public String getPlatformName()
      Description copied from interface: IPlatformHelper
      Returns the name of the platform.
      Specified by:
      getPlatformName in interface IPlatformHelper
      Returns:
      The platform name.
    • isModLoaded

      public boolean isModLoaded(String modId)
      Description copied from interface: IPlatformHelper
      Checks if a mod is loaded given its mod ID.
      Specified by:
      isModLoaded in interface IPlatformHelper
      Parameters:
      modId - ID of the mod being checked.
      Returns:
      True if the mod is loaded, otherwise returns false.
    • isDevelopmentEnvironment

      public boolean isDevelopmentEnvironment()
      Description copied from interface: IPlatformHelper
      Checks if the current environment is a development environment.
      Specified by:
      isDevelopmentEnvironment in interface IPlatformHelper
      Returns:
      True if current environment is a development environment, otherwise returns false.