Class FabricPlatformHelper
java.lang.Object
com.codinglitch.simpleradio.platform.FabricPlatformHelper
- All Implemented Interfaces:
PlatformHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetModVersion(String modId) Gets the version string of a mod if it is loadedGets the name of the current platformbooleanCheck if the game is currently in a development environment.booleanisModLoaded(String modId) Checks if a mod with the given id is loaded.booleanisVersionWithin(String version, String set) Gets the version string of a mod if it is loadedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.codinglitch.simpleradio.platform.services.PlatformHelper
getEnvironmentName
-
Constructor Details
-
FabricPlatformHelper
public FabricPlatformHelper()
-
-
Method Details
-
getPlatformName
Description copied from interface:PlatformHelperGets the name of the current platform- Specified by:
getPlatformNamein interfacePlatformHelper- Returns:
- The name of the current platform.
-
getConfigPath
- Specified by:
getConfigPathin interfacePlatformHelper
-
isModLoaded
Description copied from interface:PlatformHelperChecks if a mod with the given id is loaded.- Specified by:
isModLoadedin interfacePlatformHelper- Parameters:
modId- The mod to check if it is loaded.- Returns:
- True if the mod is loaded, false otherwise.
-
getModVersion
Description copied from interface:PlatformHelperGets the version string of a mod if it is loaded- Specified by:
getModVersionin interfacePlatformHelper- Parameters:
modId- The mod to check if it is loaded.- Returns:
- The version string of the mod if it is loaded, or an empty string if it is not.
-
isVersionWithin
Description copied from interface:PlatformHelperGets the version string of a mod if it is loaded- Specified by:
isVersionWithinin interfacePlatformHelper- Parameters:
version- The mod to check if it is loaded.- Returns:
- The version string of the mod if it is loaded, or an empty string if it is not.
-
isDevelopmentEnvironment
public boolean isDevelopmentEnvironment()Description copied from interface:PlatformHelperCheck if the game is currently in a development environment.- Specified by:
isDevelopmentEnvironmentin interfacePlatformHelper- Returns:
- True if in a development environment, false otherwise.
-