Skip to content

ModLoader ​

com.jsmacrosce.jsmacros.client.ModLoader

Since1.8.4

Provides mod-loader metadata and lookup operations to the client API.

Methods ​

getLoadedMods ​

getLoadedMods(): List<? extends ModContainerHelper<?>>Since1.8.4#
Returns the mod metadata entries reported as loaded by this mod loader.
Returns: the loaded mod metadata entries

getMod ​

getMod(String modId): ModContainerHelper<?>Since1.8.4#
Looks up a mod by ID in this mod loader.

Parameters:

  • modId: the mod id
Returns: the mod container for the ID, or null if this mod loader has no matching mod.

getName ​

getName(): StringSince1.8.4#
Returns the name of this mod loader.
Returns: this mod loader's name

isDevEnv ​

isDevEnv(): booleanSince1.8.4#
Reports whether the mod loader identifies the current environment as a development environment.
Returns: true when the mod loader reports a development environment

isModLoaded ​

isModLoaded(String modId): booleanSince1.8.4#
Reports whether this mod loader considers the specified mod ID loaded.

Parameters:

  • modId: the mod id to check
Returns: true when the mod loader reports the ID as loaded