---
title: Platform Utilities
---

<Callout>
Added in Fzzy Config 0.4.4
</Callout>

Fzzy Config has a lightweight <a target="_blank" rel="noopener" href="https://fzzyhmstrs.github.io/fconfig/-fzzy%20-config/me.fzzyhmstrs.fzzy_config.util/-platform-api/index.html">`PlatformApi` 🗗</a>, for performing common platform-specific functions without needing to write your own abstractions or having to rely on a separate API like Architectury.

### <a target="_blank" rel="noopener" href="https://fzzyhmstrs.github.io/fconfig/-fzzy%20-config/me.fzzyhmstrs.fzzy_config.util/-platform-api/is-client.html">`isClient` 🗗</a>
Checks whether the current game-state includes a logical client.

### <a target="_blank" rel="noopener" href="https://fzzyhmstrs.github.io/fconfig/-fzzy%20-config/me.fzzyhmstrs.fzzy_config.util/-platform-api/config-dir.html">`configDir` 🗗</a>
Retrieves the current config directory as a `File`.

### <a target="_blank" rel="noopener" href="https://fzzyhmstrs.github.io/fconfig/-fzzy%20-config/me.fzzyhmstrs.fzzy_config.util/-platform-api/game-dir.html">`gameDir` 🗗</a>
Retrieves the current root game directory as a `File`.

### <a target="_blank" rel="noopener" href="https://fzzyhmstrs.github.io/fconfig/-fzzy%20-config/me.fzzyhmstrs.fzzy_config.util/-platform-api/is-mod-loaded.html">`isModLoaded` 🗗</a>
Checks whether the mod that uses the provided mod_id is loaded or not.

### <a target="_blank" rel="noopener" href="https://fzzyhmstrs.github.io/fconfig/-fzzy%20-config/me.fzzyhmstrs.fzzy_config.util/-platform-api/is-dev.html">`isDev` 🗗</a>
Returns whether the current JRE is a development environment (`runClient` task etc.)

### <a target="_blank" rel="noopener" href="https://fzzyhmstrs.github.io/fconfig/-fzzy%20-config/me.fzzyhmstrs.fzzy_config.util/-platform-api/dev-logger.html">`devlogger` 🗗</a>
Creates a logger that only logs when the JRE is a development environment

### <a target="_blank" rel="noopener" href="https://fzzyhmstrs.github.io/fconfig/-fzzy%20-config/me.fzzyhmstrs.fzzy_config.util/-platform-api/test-version.html">`testVersion` 🗗</a>
Tests a provided string `modid` and `version` against the loaded version of that mod. If the mod isn't loaded or the comparison isn't valid, will return an empty optional.

## Registrar System
The registrar system is a currently experimental lightweight cross-platform registration system for Minecraft registries. Create a new registrar with `createRegistrar`.

See the [Registrar System](Registrar-System) page for specific usage information.