# ModLoader

`com.jsmacrosce.jsmacros.client.ModLoader`

**Since:** 1.8.4

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

## Methods

### getLoadedMods {#com.jsmacrosce.jsmacros.client.ModLoader_getLoadedMods-}

```js
getLoadedMods(): List<? extends ModContainerHelper<?>>
```

Returns the mod metadata entries reported as loaded by this mod loader.

**Returns:** the loaded mod metadata entries

**Since:** 1.8.4

### getMod {#com.jsmacrosce.jsmacros.client.ModLoader_getMod-String-}

```js
getMod(String modId): ModContainerHelper<?>
```

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.

**Since:** 1.8.4

### getName {#com.jsmacrosce.jsmacros.client.ModLoader_getName-}

```js
getName(): String
```

Returns the name of this mod loader.

**Returns:** this mod loader's name

**Since:** 1.8.4

### isDevEnv {#com.jsmacrosce.jsmacros.client.ModLoader_isDevEnv-}

```js
isDevEnv(): boolean
```

Reports whether the mod loader identifies the current environment as a development environment.

**Returns:** `true` when the mod loader reports a development environment

**Since:** 1.8.4

### isModLoaded {#com.jsmacrosce.jsmacros.client.ModLoader_isModLoaded-String-}

```js
isModLoaded(String modId): boolean
```

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

**Since:** 1.8.4
