Interface PlatformHelper
-
- All Implemented Interfaces:
public interface PlatformHelper
-
-
Method Summary
Modifier and Type Method Description abstract StringgetPlatformName()Gets the name of the current platform abstract BooleanisModLoaded(String modId)Checks if a mod with the given id is loaded. abstract BooleanisDevelopmentEnvironment()Check if the game is currently in a development environment. StringgetEnvironmentName()Gets the name of the environment type as a string. -
-
Method Detail
-
getPlatformName
abstract String getPlatformName()
Gets the name of the current platform
- Returns:
The name of the current platform.
-
isModLoaded
abstract Boolean isModLoaded(String modId)
Checks if a mod with the given id is loaded.
- Parameters:
modId- The mod to check if it is loaded.- Returns:
True if the mod is loaded, false otherwise.
-
isDevelopmentEnvironment
abstract Boolean isDevelopmentEnvironment()
Check if the game is currently in a development environment.
- Returns:
True if in a development environment, false otherwise.
-
getEnvironmentName
String getEnvironmentName()
Gets the name of the environment type as a string.
- Returns:
The name of the environment type.
-
-
-
-