Class FabricPlatformHelper
java.lang.Object
com.glektarssza.expandedgamerules.platform.FabricPlatformHelper
- All Implemented Interfaces:
IPlatformHelper
The Fabric-specific platform helper.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the name of the platform.booleanCheck whether the current environment is a development environment.booleanisModLoaded(String modId) Check whether the named mod is loaded.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.glektarssza.expandedgamerules.platform.services.IPlatformHelper
getEnvironmentName
-
Constructor Details
-
FabricPlatformHelper
public FabricPlatformHelper()
-
-
Method Details
-
getPlatformName
Get the name of the platform.- Specified by:
getPlatformNamein interfaceIPlatformHelper- Returns:
- The name of the platform.
-
isModLoaded
Check whether the named mod is loaded.- Specified by:
isModLoadedin interfaceIPlatformHelper- Parameters:
modId- The ID of the mod to check.- Returns:
- Whether the named mod is loaded.
-
isDevelopmentEnvironment
public boolean isDevelopmentEnvironment()Check whether the current environment is a development environment.- Specified by:
isDevelopmentEnvironmentin interfaceIPlatformHelper- Returns:
- Whether the current environment is a development environment.
-