Interface IPlatformHelper
- All Known Implementing Classes:
FabricPlatformHelper
public interface IPlatformHelper
An interface for platform-specific helper service classes.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringGet the name of the current environment.Get the name of the platform.booleanCheck whether the current environment is a development environment.booleanisModLoaded(String modId) Check whether the named mod is loaded.
-
Method Details
-
getPlatformName
Get the name of the platform.- Returns:
- The name of the platform.
-
isModLoaded
Check whether the named mod is loaded.- Parameters:
modId- The ID of the mod to check.- Returns:
- Whether the named mod is loaded.
-
isDevelopmentEnvironment
boolean isDevelopmentEnvironment()Check whether the current environment is a development environment.- Returns:
- Whether the current environment is a development environment.
-
getEnvironmentName
Get the name of the current environment.- Returns:
- The name of the current environment.
-