Package foundry.veil.forge.platform
Class ForgeVeilPlatform
java.lang.Object
foundry.veil.forge.platform.ForgeVeilPlatform
- All Implemented Interfaces:
VeilPlatform
-
Nested Class Summary
Nested classes/interfaces inherited from interface foundry.veil.platform.VeilPlatform
VeilPlatform.PlatformType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if the game is currently in a development environment.booleanisModLoaded(String modId) Checks if a mod with the given id is loaded.boolean
-
Constructor Details
-
ForgeVeilPlatform
public ForgeVeilPlatform()
-
-
Method Details
-
getPlatformType
- Specified by:
getPlatformTypein interfaceVeilPlatform- Returns:
- The detected platform operand
-
isModLoaded
Description copied from interface:VeilPlatformChecks if a mod with the given id is loaded.- Specified by:
isModLoadedin interfaceVeilPlatform- Parameters:
modId- The mod to check if it is loaded.- Returns:
- True if the mod is loaded, false otherwise.
-
isSodiumLoaded
public boolean isSodiumLoaded()- Specified by:
isSodiumLoadedin interfaceVeilPlatform- Returns:
- Whether Sodium is present
-
isDevelopmentEnvironment
public boolean isDevelopmentEnvironment()Description copied from interface:VeilPlatformCheck if the game is currently in a development environment.- Specified by:
isDevelopmentEnvironmentin interfaceVeilPlatform- Returns:
- True if in a development environment, false otherwise.
-