createSpongeYmlConfig

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

Creates a Sponge YAML 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 YAML file name pattern.