public interface ConfigCheckExtension extends ExtensionInformation
ConfigurationModel should you so desire.| Modifier and Type | Method and Description |
|---|---|
boolean |
runCheck(ConfigurationModel configurationModel,
java.util.List<java.lang.String> encounteredErrors,
java.util.Optional<com.electronwill.nightconfig.core.CommentedConfig> addonConfig,
java.util.ArrayList<com.electronwill.nightconfig.core.CommentedConfig> packSpecificConfigs) |
getExtensionIdgetAuthor, getDescription, getName, getVersionboolean runCheck(ConfigurationModel configurationModel, java.util.List<java.lang.String> encounteredErrors, java.util.Optional<com.electronwill.nightconfig.core.CommentedConfig> addonConfig, java.util.ArrayList<com.electronwill.nightconfig.core.CommentedConfig> packSpecificConfigs) throws java.lang.Exception
configurationModel - The configuration to check.encounteredErrors - A list of encountered errors during any and all checks. The list is
displayed to the user if it contains any entries.addonConfig - Configuration for this addon, conveniently provided by
ServerPackCreator.packSpecificConfigs - Modpack and server pack specific configurations for this addon,
conveniently provided by ServerPackCreator.true if an error was encountered. false if the checks were
successful.java.lang.Exception - if any unexpected error is encountered during the execution of this method.