Skip to content

Platform Utilities

fzzyhmstrs edited this page Sep 20, 2024 · 1 revision

As of 0.4.4, Fzzy Config has a very lightweight PlatformApi, for performing simple platform-specific functions without needing to write your own platform abstractions or having to rely on a separate API like Architectury API.

More complex functions like registration are left to dedicated platform resources like Architectury.

isClient

Checks whether the current game-state includes a logical client.

configDir

Retrieves the current config directory as a File.

gameDir

Retrieves the current root game directory as a File.

isModLoaded

Checks whether the mod that uses the provided mod_id is loaded or not.

Clone this wiki locally