Interface IPlatformHelper
- All Known Implementing Classes:
NeoForgePlatformHelper
public interface IPlatformHelper
A
public interface that defines platform-specific functionality for the BlueLib mod.
This interface provides methods to retrieve the platform name, check for loaded mods, and determine if the game is running in a development environment.
Key Methods:
getPlatformName()- Retrieves the name of the current platform.isModLoaded(String)- Checks if a mod is loaded based on its ID.isDevelopmentEnvironment()- Determines if the environment is for development.getEnvironmentName()- Retrieves the name of the environment type.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringAStringmethod that retrieves the name of the current environment type.AStringmethod that retrieves the name of the current platform.booleanABooleanmethod that checks if the game is currently running in a development environment.booleanisModLoaded(String pModId) ABooleanmethod that checks if a mod with the given ID is loaded.
-
Method Details
-
getPlatformName
String getPlatformName()AStringmethod that retrieves the name of the current platform.- Returns:
- The name of the current platform as a
String. - Since:
- 1.0.0
-
isModLoaded
ABooleanmethod that checks if a mod with the given ID is loaded.- Parameters:
pModId-String- The ID of the mod to check.- Returns:
trueif the mod is loaded,falseif it isn't.- Since:
- 1.0.0
-
isDevelopmentEnvironment
boolean isDevelopmentEnvironment()ABooleanmethod that checks if the game is currently running in a development environment.- Returns:
trueif running in a development environment,falseif it isn't.- Since:
- 1.0.0
-
getEnvironmentName
AStringmethod that retrieves the name of the current environment type.The environment type is either "development" or "production" based on whether the game is running in a development environment.
- Returns:
String- The name of the environment type.- Since:
- 1.0.0
-