Interface ConfigCheckExtension
-
- All Implemented Interfaces:
-
de.griefed.serverpackcreator.api.plugins.BaseInformation,de.griefed.serverpackcreator.api.plugins.ExtensionInformation,org.pf4j.ExtensionPoint
public interface ConfigCheckExtension implements ExtensionInformation
Extension point for configuration checks, so you can run your own checks on a given PackConfig should you so desire.
Griefed
-
-
Method Summary
Modifier and Type Method Description abstract BooleanrunCheck(VersionMeta versionMeta, ApiProperties apiProperties, Utilities utilities, PackConfig packConfig, ConfigCheck configCheck, Optional<CommentedConfig> pluginConfig, ArrayList<CommentedConfig> packSpecificConfigs)abstract StringgetExtensionId()abstract StringgetName()abstract StringgetDescription()abstract StringgetAuthor()abstract StringgetVersion()-
-
Method Detail
-
runCheck
abstract Boolean runCheck(VersionMeta versionMeta, ApiProperties apiProperties, Utilities utilities, PackConfig packConfig, ConfigCheck configCheck, Optional<CommentedConfig> pluginConfig, ArrayList<CommentedConfig> packSpecificConfigs)
- Parameters:
versionMeta- Instance of VersionMeta so you can work with available Minecraft, Forge, Fabric, LegacyFabric and Quilt versions.apiProperties- Instance of ApiProperties The current configuration of ServerPackCreator, like the default list of clientside-only mods, the server pack directory etc.utilities- Instance of Utilities commonly used across ServerPackCreator.packConfig- The configuration to check.configCheck- Contains all encountered errors during the check of the passed configuration.pluginConfig- Configuration for this plugin, conveniently provided by ServerPackCreator.packSpecificConfigs- Modpack and server pack specific configurations for this plugin, conveniently provided by ServerPackCreator.- Returns:
trueif an error was encountered.falseif the checks were successful.
-
getExtensionId
abstract String getExtensionId()
-
getDescription
abstract String getDescription()
-
getVersion
abstract String getVersion()
-
-
-
-