Interface IPlatformHelper
- All Known Implementing Classes:
NeoForgePlatformHelper
public interface IPlatformHelper
Platform information that differs between Fabric and NeoForge. Resolved at runtime through
Services.-
Method Summary
Modifier and TypeMethodDescriptionThe loader's configuration directory, used to load the mod's TOML config.default StringGets the name of the current platform.booleanWhether the game is running in a development environment.booleanisModLoaded(String modId) Checks if a mod with the given id is loaded.
-
Method Details
-
getPlatformName
String getPlatformName()Gets the name of the current platform. -
isModLoaded
Checks if a mod with the given id is loaded. -
isDevelopmentEnvironment
boolean isDevelopmentEnvironment()Whether the game is running in a development environment. -
getConfigDir
Path getConfigDir()The loader's configuration directory, used to load the mod's TOML config. -
getEnvironmentName
-