Platform Tools
Platform-specific tools
is mod loaded
Check, whether a mod with the specified modid is loaded
PlatformData.isModLoaded(modid);
get mod version
Returns the mod version, parsed as ModuleDescriptor.Version
, if a mod with the specified id was found.
PlatformData.getModVersion(modid);
get environment
Returns the EnvType
on Fabric-like and Dist
on Forge-like mod-loaders.
PlatformData.getEnv();
get config path
Returns the Path
, where all the mod configurations should be stored.
PlatformData.getConfigPath();
get mod loader id
Returns an enum value, where valid values are FABRIC, FORGE, NEOFORGE, OTHER
.
PlatformData.getModLoaderId();
Continue with Version Checker