Class FabricPlatformHelper

java.lang.Object
fr.pacdu.pacpackquests.platform.FabricPlatformHelper
All Implemented Interfaces:
IPlatformHelper

public class FabricPlatformHelper extends Object implements IPlatformHelper
  • Constructor Details

    • FabricPlatformHelper

      public FabricPlatformHelper()
  • Method Details

    • getPlatformName

      public String getPlatformName()
      Description copied from interface: IPlatformHelper
      Returns the human-readable name of the running mod loader (e.g. "Fabric" or "NeoForge").
      Specified by:
      getPlatformName in interface IPlatformHelper
      Returns:
      The loader platform name string.
    • isModLoaded

      public boolean isModLoaded(String modId)
      Description copied from interface: IPlatformHelper
      Checks if a mod with the given ID is present in the current environment.
      Specified by:
      isModLoaded in interface IPlatformHelper
      Parameters:
      modId - The mod identifier to check.
      Returns:
      true if the mod is loaded; false otherwise.
    • isDevelopmentEnvironment

      public boolean isDevelopmentEnvironment()
      Description copied from interface: IPlatformHelper
      Checks if the game is running within a development environment.
      Specified by:
      isDevelopmentEnvironment in interface IPlatformHelper
      Returns:
      true in dev environments; false in production builds.
    • getConfigDirectory

      public Path getConfigDirectory()
      Description copied from interface: IPlatformHelper
      Returns the global configuration directory for the game instance.
      Specified by:
      getConfigDirectory in interface IPlatformHelper
      Returns:
      The Path to the config directory.
    • getModName

      public String getModName(String modId)
      Description copied from interface: IPlatformHelper
      Retrieves the display name of a mod from its identifier.
      Specified by:
      getModName in interface IPlatformHelper
      Parameters:
      modId - The mod ID.
      Returns:
      The formatted mod display name.