Class Platform
java.lang.Object
com.github.voidleech.oblivion.util.Platform
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGets the name of the environment type as a string.static StringGets the name of the current platformstatic PathgetResourcePath(String modId, String resource) static booleanCheck if the game is currently in a development environment.static booleanisModEarlyLoaded(String modId) Checks if a mod with the given id is loaded early.static booleanisModLoaded(String modId) Checks if a mod with the given id is loaded.
-
Constructor Details
-
Platform
public Platform()
-
-
Method Details
-
getPlatformName
Gets the name of the current platform- Returns:
- The name of the current platform.
-
isModLoaded
Checks if a mod with the given id is loaded.- Parameters:
modId- The mod to check if it is loaded.- Returns:
- True if the mod is loaded, false otherwise.
-
isModEarlyLoaded
Checks if a mod with the given id is loaded early.- Parameters:
modId- The mod to check if it is loaded.- Returns:
- True if the mod is loaded, false otherwise.
-
getResourcePath
-
isDevelopmentEnvironment
public static boolean isDevelopmentEnvironment()Check if the game is currently in a development environment.- Returns:
- True if in a development environment, false otherwise.
-
getEnvironmentName
Gets the name of the environment type as a string.- Returns:
- The name of the environment type.
-