Class FabricPlatformHelper
java.lang.Object
io.github.gameking1happy.gk1hcore.platform.FabricPlatformHelper
- All Implemented Interfaces:
IPlatformHelper
Fabric code for the platform helper which provides information which platform the mod is running on.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the platform.booleanChecks if the current environment is a development environment.booleanisModLoaded(String modId) Checks if a mod is loaded given its mod ID.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.gameking1happy.gk1hcore.platform.services.IPlatformHelper
getEnvironmentName
-
Constructor Details
-
FabricPlatformHelper
public FabricPlatformHelper()
-
-
Method Details
-
getPlatformName
Description copied from interface:IPlatformHelperReturns the name of the platform.- Specified by:
getPlatformNamein interfaceIPlatformHelper- Returns:
- The platform name.
-
isModLoaded
Description copied from interface:IPlatformHelperChecks if a mod is loaded given its mod ID.- Specified by:
isModLoadedin interfaceIPlatformHelper- 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:IPlatformHelperChecks if the current environment is a development environment.- Specified by:
isDevelopmentEnvironmentin interfaceIPlatformHelper- Returns:
- True if current environment is a development environment, otherwise returns false.
-