Class YamlConfigFactory
java.lang.Object
com.pixelmonmod.pixelmon.api.config.api.yaml.YamlConfigFactory
Static factory used for loading the YAML configs from their classes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends AbstractYamlConfig>
TgetInstance
(Class<T> clazz) Gets the instance of the given config from the class using Sponge's Configurate
-
Constructor Details
-
YamlConfigFactory
public YamlConfigFactory()
-
-
Method Details
-
getInstance
Gets the instance of the given config from the class using Sponge's Configurate- Type Parameters:
T
- The type of the class- Parameters:
clazz
- The class that represents a config file- Returns:
- The config instance
- Throws:
IOException
- If an error occurs whilst loading the file
-