createSpongeJsonConfig

inline fun <C> SurfConfigApi.createSpongeJsonConfig(configFolder: Path, configFileName: @JsonConfigFileNamePattern String): C

Creates a Sponge JSON configuration using a reified type.

Return

An instance of the configuration class C.

Parameters

C

The type of the configuration class.

configFolder

The folder where the configuration file is stored.

configFileName

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