Check, whether a mod with the specified modid is loaded
PlatformData.isModLoaded(modid);
Returns the mod version, parsed as ModuleDescriptor.Version, if a mod with the specified id was found.
ModuleDescriptor.Version
PlatformData.getModVersion(modid);
Returns the EnvType on Fabric-like and Dist on Forge-like mod-loaders.
EnvType
Dist
PlatformData.getEnv();
Returns the Path, where all the mod configurations should be stored.
Path
PlatformData.getConfigPath();
Returns an enum value, where valid values are FABRIC, FORGE, NEOFORGE, OTHER.
FABRIC, FORGE, NEOFORGE, OTHER
PlatformData.getModLoaderId();
There was an error while loading. Please reload this page.