Package de.z0rdak.yawp.platform
Class NeoForgePlatformHelper
java.lang.Object
de.z0rdak.yawp.platform.NeoForgePlatformHelper
- All Implemented Interfaces:
IPlatformHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the current platformbooleanCheck if the game is currently in a development environment.booleanbooleanisModLoaded(String modId) Checks if a mod with the given id is loaded.booleanbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.z0rdak.yawp.platform.services.IPlatformHelper
getEnvironmentName
-
Constructor Details
-
NeoForgePlatformHelper
public NeoForgePlatformHelper()
-
-
Method Details
-
getPlatformName
Description copied from interface:IPlatformHelperGets the name of the current platform- Specified by:
getPlatformNamein interfaceIPlatformHelper- Returns:
- The name of the current platform.
-
isModLoaded
Description copied from interface:IPlatformHelperChecks if a mod with the given id is loaded.- Specified by:
isModLoadedin interfaceIPlatformHelper- Parameters:
modId- The mod to check if it is loaded.- Returns:
- True if the mod is loaded, false otherwise.
-
isWorldEditLoaded
public boolean isWorldEditLoaded()- Specified by:
isWorldEditLoadedin interfaceIPlatformHelper
-
isWorldEditCuiLoaded
public boolean isWorldEditCuiLoaded()- Specified by:
isWorldEditCuiLoadedin interfaceIPlatformHelper
-
isJourneyMapLoaded
public boolean isJourneyMapLoaded()- Specified by:
isJourneyMapLoadedin interfaceIPlatformHelper
-
isDevelopmentEnvironment
public boolean isDevelopmentEnvironment()Description copied from interface:IPlatformHelperCheck if the game is currently in a development environment.- Specified by:
isDevelopmentEnvironmentin interfaceIPlatformHelper- Returns:
- True if in a development environment, false otherwise.
-