public class YamlConfigFactory
extends java.lang.Object
| Constructor and Description |
|---|
YamlConfigFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends AbstractYamlConfig> |
getInstance(java.lang.Class<T> clazz)
Gets the instance of the given config from the class using Sponge's Configurate
|
public static <T extends AbstractYamlConfig> T getInstance(java.lang.Class<T> clazz) throws java.io.IOException
T - The type of the classclazz - The class that represents a config filejava.io.IOException - If an error occurs whilst loading the file