Package fr.pacdu.pacpackquests.platform
Class FabricPlatformHelper
java.lang.Object
fr.pacdu.pacpackquests.platform.FabricPlatformHelper
- All Implemented Interfaces:
IPlatformHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the global configuration directory for the game instance.getModName(String modId) Retrieves the display name of a mod from its identifier.Returns the human-readable name of the running mod loader (e.g.booleanChecks if the game is running within a development environment.booleanisModLoaded(String modId) Checks if a mod with the given ID is present in the current environment.
-
Constructor Details
-
FabricPlatformHelper
public FabricPlatformHelper()
-
-
Method Details
-
getPlatformName
Description copied from interface:IPlatformHelperReturns the human-readable name of the running mod loader (e.g. "Fabric" or "NeoForge").- Specified by:
getPlatformNamein interfaceIPlatformHelper- Returns:
- The loader platform name string.
-
isModLoaded
Description copied from interface:IPlatformHelperChecks if a mod with the given ID is present in the current environment.- Specified by:
isModLoadedin interfaceIPlatformHelper- Parameters:
modId- The mod identifier to check.- Returns:
trueif the mod is loaded;falseotherwise.
-
isDevelopmentEnvironment
public boolean isDevelopmentEnvironment()Description copied from interface:IPlatformHelperChecks if the game is running within a development environment.- Specified by:
isDevelopmentEnvironmentin interfaceIPlatformHelper- Returns:
truein dev environments;falsein production builds.
-
getConfigDirectory
Description copied from interface:IPlatformHelperReturns the global configuration directory for the game instance.- Specified by:
getConfigDirectoryin interfaceIPlatformHelper- Returns:
- The
Pathto the config directory.
-
getModName
Description copied from interface:IPlatformHelperRetrieves the display name of a mod from its identifier.- Specified by:
getModNamein interfaceIPlatformHelper- Parameters:
modId- The mod ID.- Returns:
- The formatted mod display name.
-