XDPXI's Documentation
Utilities

Mod Properties

import dev.xdpxi.xdlib.api.v7.Loader;

Mod Loaded

To check if a mod is loaded you can use

Loader.isModLoaded("modID");

It will return a boolean true if it is initialized or false if it isn't.

Getting the Mod Version

To get the version of a mod you can call

Loader.getModVersion("modID");

It will return the string of the version.