Class FabricPlatformHelper
java.lang.Object
johnsmith.enchantingoverhauled.platform.FabricPlatformHelper
- All Implemented Interfaces:
PlatformHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the current mod loader.booleanChecks if the game is running in a development environment (IDE).booleanisModLoaded(String modId) Checks if another mod with the given ID is currently loaded.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface johnsmith.enchantingoverhauled.platform.services.PlatformHelper
getEnvironmentName
-
Constructor Details
-
FabricPlatformHelper
public FabricPlatformHelper()
-
-
Method Details
-
getPlatformName
Description copied from interface:PlatformHelperGets the name of the current mod loader.- Specified by:
getPlatformNamein interfacePlatformHelper- Returns:
- "Fabric" or "NeoForge".
-
isModLoaded
Description copied from interface:PlatformHelperChecks if another mod with the given ID is currently loaded.- Specified by:
isModLoadedin interfacePlatformHelper- Parameters:
modId- The mod ID to check.- Returns:
- True if the mod is loaded, false otherwise.
-
isDevelopmentEnvironment
public boolean isDevelopmentEnvironment()Description copied from interface:PlatformHelperChecks if the game is running in a development environment (IDE).- Specified by:
isDevelopmentEnvironmentin interfacePlatformHelper- Returns:
- True if in development, false if in production.
-