-
-
Notifications
You must be signed in to change notification settings - Fork 1
Platform Tools
To_Craft edited this page Jun 25, 2025
·
1 revision
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.
PlatformData.getModVersion(modid);Returns the EnvType on Fabric-like and Dist on Forge-like mod-loaders.
PlatformData.getEnv();Returns the Path, where all the mod configurations should be stored.
PlatformData.getConfigPath();Returns an enum value, where valid values are FABRIC, FORGE, NEOFORGE, OTHER.
PlatformData.getModLoaderId();