json

fun <C> json(configClass: Class<C>, configFolder: Path, configFileName: @JsonConfigFileNamePattern String): SpongeConfigManager<C>

Creates a SpongeConfigManager for managing a JSON configuration.

Return

A new instance of SpongeConfigManager.

Parameters

C

The type of the configuration class.

configClass

The class of the configuration.

configFolder

The folder where the configuration file is stored.

configFileName

The name of the configuration file. Must match the JSON file name pattern.